class GatherContent::DSL::Section
Public Class Methods
new(tab)
click to toggle source
# File lib/gather_content/dsl/section.rb, line 6 def initialize(tab) @section = GatherContent::Config::Element::Section.new tab.elements << @section end
Public Instance Methods
name(name)
click to toggle source
# File lib/gather_content/dsl/section.rb, line 11 def name(name) @section.name = name end
subtitle(subtitle)
click to toggle source
# File lib/gather_content/dsl/section.rb, line 19 def subtitle(subtitle) @section.subtitle = subtitle end
title(title)
click to toggle source
# File lib/gather_content/dsl/section.rb, line 15 def title(title) @section.title = title end