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
379 380 381 382 383 384 385 386 |
# File 'lib/bridgetown-core.rb', line 379 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 |