Class: GatherContent::DSL::Section

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

Instance Method Summary collapse

Constructor Details

#initialize(tab) ⇒ Section

Returns a new instance of Section.



6
7
8
9
# File 'lib/gather_content/dsl/section.rb', line 6

def initialize(tab)
  @section = GatherContent::Config::Element::Section.new
  tab.elements << @section
end

Instance Method Details

#name(name) ⇒ Object



11
12
13
# File 'lib/gather_content/dsl/section.rb', line 11

def name(name)
  @section.name = name
end

#subtitle(subtitle) ⇒ Object



19
20
21
# File 'lib/gather_content/dsl/section.rb', line 19

def subtitle(subtitle)
  @section.subtitle = subtitle
end

#title(title) ⇒ Object



15
16
17
# File 'lib/gather_content/dsl/section.rb', line 15

def title(title)
  @section.title = title
end