Class: REDCap::Form::RadioButtons
- Defined in:
- lib/red_cap/form/fields.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Field
Instance Attribute Summary
Attributes inherited from Field
#associated_fields, #attributes
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
#options ⇒ Object
93 94 95 96 97 98 99 100 |
# File 'lib/red_cap/form/fields.rb', line 93 def select_choices_or_calculations .split(/\s*\|\s*/) .reduce({}) do |, pair| _, key, value = *pair.match(/\A(\d+),(.+)\z/) .merge key => value end end |
#value(responses) ⇒ Object
89 90 91 |
# File 'lib/red_cap/form/fields.rb', line 89 def value responses [super] end |