Class: REDCap::Form::Yesno
- Defined in:
- lib/red_cap/form/fields.rb
Constant Summary
Constants inherited from Field
Instance Attribute Summary
Attributes inherited from Field
#associated_fields, #attributes, #options
Instance Method Summary collapse
Methods inherited from Field
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class REDCap::Form::Field
Instance Method Details
#value(responses) ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/red_cap/form/fields.rb', line 71 def value responses if .has_key?(:default) && super == "" [:default] else super == "1" end end |