lib/timeliness/definitions.rb
def remove_formats(type, *remove_formats)
        remove_formats.each do |format|
          unless send("#{type}_formats").delete(format)
            raise FormatNotFound, "Format #{format.inspect} not found in #{type.inspect} formats"
          end
        end
        compile_formats
      end
# Delete formats of specified type. Error raised if format not found.
#
Delete formats of specified type. Error raised if format not found.
Delete formats of specified type . Error raised if format not found .
def remove_formats(type, *remove_formats)
        remove_formats.each do |format|
          unless send("#{type}_formats").delete(format)
            raise FormatNotFound, "Format #{format.inspect} not found in #{type.inspect} formats"
          end
        end
        compile_formats
      end
def remove_formats ( type , * remove_formats ) remove_formats . each do | format | unless send ( "#{type}_formats" ) . delete ( format ) raise FormatNotFound , "Format #{format.inspect} not found in #{type.inspect} formats" end end compile_formats end
Delete formats of specified type.
Delete formats of specified type .
type
remove_formats