Class: GatherContent::DSL::ChoiceRadio
- Inherits:
-
Base
- Object
- Base
- GatherContent::DSL::ChoiceRadio
show all
- Defined in:
- lib/gather_content/dsl/choice_radio.rb
Instance Method Summary
collapse
Methods inherited from Base
#label, #microcopy, #name, #required
Constructor Details
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
|