Class: GatherContent::Config::Builder
- Inherits:
-
Object
- Object
- GatherContent::Config::Builder
- Defined in:
- lib/gather_content/config/builder.rb
Instance Attribute Summary collapse
-
#tabs ⇒ Object
Returns the value of attribute tabs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
8 9 10 |
# File 'lib/gather_content/config/builder.rb', line 8 def initialize self.tabs = GatherContent::Config::Tabs.new end |
Instance Attribute Details
#tabs ⇒ Object
Returns the value of attribute tabs.
6 7 8 |
# File 'lib/gather_content/config/builder.rb', line 6 def tabs @tabs end |
Class Method Details
.build(&block) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/gather_content/config/builder.rb', line 12 def self.build(&block) instance = self.new dsl = GatherContent::DSL::Config.new(instance) dsl.instance_eval(&block) instance.tabs end |