Class: GatherContent::DSL::OtherOption
- Defined in:
- lib/gather_content/dsl/other_option.rb
Instance Method Summary collapse
-
#initialize(choice) ⇒ OtherOption
constructor
A new instance of OtherOption.
- #value(value) ⇒ Object
Methods inherited from Option
Constructor Details
#initialize(choice) ⇒ OtherOption
Returns a new instance of OtherOption.
7 8 9 10 11 |
# File 'lib/gather_content/dsl/other_option.rb', line 7 def initialize(choice) @option = GatherContent::Config::Element::OtherOption.new choice.other_option = true choice. << @option end |
Instance Method Details
#value(value) ⇒ Object
13 14 15 |
# File 'lib/gather_content/dsl/other_option.rb', line 13 def value(value) @option.value = value end |