Class: GatherContent::DSL::ChoiceCheckbox

Inherits:
Base
  • Object
show all
Defined in:
lib/gather_content/dsl/choice_checkbox.rb

Instance Method Summary collapse

Methods inherited from Base

#label, #microcopy, #name, #required

Constructor Details

#initialize(tab) ⇒ ChoiceCheckbox

Returns a new instance of ChoiceCheckbox.



8
9
10
11
# File 'lib/gather_content/dsl/choice_checkbox.rb', line 8

def initialize(tab)
  @choice_checkbox = GatherContent::Config::Element::ChoiceCheckbox.new
  super(tab, @choice_checkbox)
end

Instance Method Details

#option(&block) ⇒ Object



13
14
15
16
# File 'lib/gather_content/dsl/choice_checkbox.rb', line 13

def option(&block)
  dsl = GatherContent::DSL::Option.new(@choice_checkbox)
  dsl.instance_eval(&block)
end