Class: Cas::FormField

Inherits:
Object
  • Object
show all
Defined in:
lib/cas/form_field.rb

Instance Method Summary collapse

Constructor Details

#initialize(section, field_name) ⇒ FormField

Returns a new instance of FormField.



3
4
5
6
# File 'lib/cas/form_field.rb', line 3

def initialize(section, field_name)
  @section = section
  @field_name = field_name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



8
9
10
# File 'lib/cas/form_field.rb', line 8

def method_missing(name, *args, &block)
  load_field[name]
end