class GatherContent::DSL::ChoiceCheckbox

Public Class Methods

new(tab) click to toggle source
Calls superclass method GatherContent::DSL::Base::new
# 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

Public Instance Methods

option(&block) click to toggle source
# 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