Class: GatherContent::DSL::ChoiceRadio
- Defined in:
- lib/gather_content/dsl/choice_radio.rb
Instance Method Summary collapse
-
#initialize(tab) ⇒ ChoiceRadio
constructor
A new instance of ChoiceRadio.
- #option(&block) ⇒ Object
- #other_option(&block) ⇒ Object
Methods inherited from Base
#label, #microcopy, #name, #required
Constructor Details
#initialize(tab) ⇒ ChoiceRadio
Returns a new instance of ChoiceRadio.
9 10 11 12 |
# File 'lib/gather_content/dsl/choice_radio.rb', line 9 def initialize(tab) @choice_radio = GatherContent::Config::Element::ChoiceRadio.new super(tab, @choice_radio) end |
Instance Method Details
#option(&block) ⇒ Object
14 15 16 17 |
# File 'lib/gather_content/dsl/choice_radio.rb', line 14 def option(&block) dsl = GatherContent::DSL::Option.new(@choice_radio) dsl.instance_eval(&block) end |
#other_option(&block) ⇒ Object
19 20 21 22 |
# File 'lib/gather_content/dsl/choice_radio.rb', line 19 def other_option(&block) dsl = GatherContent::DSL::OtherOption.new(@choice_radio) dsl.instance_eval(&block) end |