Module: Phlexi::Field::Options::Multiple
- Included in:
- Builder
- Defined in:
- lib/phlexi/field/options/multiple.rb
Instance Method Summary collapse
Instance Method Details
#multiple!(multiple = true) ⇒ Object
11 12 13 14 |
# File 'lib/phlexi/field/options/multiple.rb', line 11 def multiple!(multiple = true) [:multiple] = multiple self end |
#multiple? ⇒ Boolean
7 8 9 |
# File 'lib/phlexi/field/options/multiple.rb', line 7 def multiple? [:multiple] = .fetch(:multiple) { calculate_multiple_field_value } end |