class GatherContent::DSL::Tab

Public Class Methods

new(builder) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 11
def initialize(builder)
  @tab = GatherContent::Config::Tab.new
  builder.tabs << @tab
end

Public Instance Methods

choice_checkbox(&block) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 43
def choice_checkbox(&block)
  dsl = GatherContent::DSL::ChoiceCheckbox.new(@tab)
  dsl.instance_eval(&block)
end
choice_radio(&block) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 38
def choice_radio(&block)
  dsl = GatherContent::DSL::ChoiceRadio.new(@tab)
  dsl.instance_eval(&block)
end
files(&block) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 33
def files(&block)
  dsl = GatherContent::DSL::Files.new(@tab)
  dsl.instance_eval(&block)
end
hidden(hidden) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 24
def hidden(hidden)
  @tab.hidden = hidden
end
label(label) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 16
def label(label)
  @tab.label = label
end
name(name) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 20
def name(name)
  @tab.name = name
end
section(&block) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 48
def section(&block)
  dsl = GatherContent::DSL::Section.new(@tab)
  dsl.instance_eval(&block)
end
text(&block) click to toggle source
# File lib/gather_content/dsl/tab.rb, line 28
def text(&block)
  dsl = GatherContent::DSL::Text.new(@tab)
  dsl.instance_eval(&block)
end