Class: Cas::FormField
- Inherits:
-
Object
- Object
- Cas::FormField
- Defined in:
- lib/cas/form_field.rb
Instance Method Summary collapse
-
#initialize(section, field_name) ⇒ FormField
constructor
A new instance of FormField.
- #method_missing(name, *args, &block) ⇒ Object
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 |