Module: Reform::Form::Module::ClassMethods

Defined in:
lib/reform/form/module.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



20
21
22
# File 'lib/reform/form/module.rb', line 20

def method_missing(method, *args, &block)
  instructions << [method, args, block]
end

Instance Method Details

#instructionsObject



24
25
26
# File 'lib/reform/form/module.rb', line 24

def instructions
  @instructions ||= []
end