Class: Bridgetown::Builder
- Inherits:
-
Bridgetown::Builders::PluginBuilder
- Object
- Bridgetown::Builders::PluginBuilder
- Bridgetown::Builder
- Extended by:
- ActiveSupport::DescendantsTracker
- Defined in:
- lib/bridgetown-builder/builder.rb
Overview
Superclass for a website’s SiteBuilder abstract class
Instance Attribute Summary
Attributes inherited from Bridgetown::Builders::PluginBuilder
#config, #functions, #name, #site
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name, current_site = nil) ⇒ Builder
constructor
Subclass is expected to implement #build.
- #inspect ⇒ Object
Methods inherited from Bridgetown::Builders::PluginBuilder
Methods included from Bridgetown::Builders::DSL::Liquid
Methods included from Bridgetown::Builders::DSL::HTTP
Methods included from Bridgetown::Builders::DSL::Hooks
Methods included from Bridgetown::Builders::DSL::Helpers
Methods included from Bridgetown::Builders::DSL::Generators
Constructor Details
#initialize(name, current_site = nil) ⇒ Builder
Subclass is expected to implement #build
17 18 19 20 |
# File 'lib/bridgetown-builder/builder.rb', line 17 def initialize(name, current_site = nil) super(name, current_site) build end |
Class Method Details
.descendants ⇒ Object
26 27 28 |
# File 'lib/bridgetown-builder/builder.rb', line 26 def self.descendants super.reject { |klass| ["SiteBuilder"].include?(klass.name) } end |
.register ⇒ Object
9 10 11 12 13 |
# File 'lib/bridgetown-builder/builder.rb', line 9 def register Bridgetown::Hooks.register_one :site, :pre_read, reloadable: false do |site| new(name, site) end end |
Instance Method Details
#inspect ⇒ Object
22 23 24 |
# File 'lib/bridgetown-builder/builder.rb', line 22 def inspect name end |