class GatherContent::DSL::ChoiceRadio
Public Class Methods
new(tab)
click to toggle source
Calls superclass method
GatherContent::DSL::Base::new
# 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
Public Instance Methods
option(&block)
click to toggle source
# 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)
click to toggle source
# 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