Module: Bridgetown::Resource
- Defined in:
- lib/bridgetown-core/resource/base.rb,
lib/bridgetown-core/resource/relations.rb,
lib/bridgetown-core/resource/destination.rb,
lib/bridgetown-core/resource/transformer.rb,
lib/bridgetown-core/resource/taxonomy_term.rb,
lib/bridgetown-core/resource/taxonomy_type.rb,
lib/bridgetown-core/resource/permalink_processor.rb,
lib/bridgetown-core.rb
Defined Under Namespace
Classes: Base, Destination, PermalinkProcessor, Relations, TaxonomyTerm, TaxonomyType, Transformer
Class Method Summary collapse
Class Method Details
.register_extension(mod) ⇒ Object
399 400 401 402 403 404 405 406 |
# File 'lib/bridgetown-core.rb', line 399 def self.register_extension(mod) if mod.const_defined?(:LiquidResource) Bridgetown::Drops::ResourceDrop.include mod.const_get(:LiquidResource) end if mod.const_defined?(:RubyResource) # rubocop:disable Style/GuardClause Bridgetown::Resource::Base.include mod.const_get(:RubyResource) end end |