Module: DataBindings::ConverterHelper

Class Method Summary collapse

Class Method Details

.included(m) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/data_bindings/util.rb', line 20

def self.included(m)
  m.class_eval <<-EOT, __FILE__, __LINE__ +1
  def self.standard_converter(m)
    define_method(m) do
      pre_convert if respond_to?(:pre_convert)
      send(:"force_\#{m}")
    end
  end
  EOT
end