Module: Trestle::Adapters
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/trestle/adapters.rb,
lib/trestle/adapters/adapter.rb,
lib/trestle/adapters/draper_adapter.rb,
lib/trestle/adapters/sequel_adapter.rb,
lib/trestle/adapters/active_record_adapter.rb
Defined Under Namespace
Modules: ActiveRecordAdapter, DraperAdapter, SequelAdapter Classes: Adapter
Class Method Summary collapse
-
.compose(*modules) ⇒ Object
Creates a new Adapter class with the given modules mixed in.
Class Method Details
.compose(*modules) ⇒ Object
Creates a new Adapter class with the given modules mixed in
12 13 14 15 16 |
# File 'lib/trestle/adapters.rb', line 12 def self.compose(*modules) Class.new(Adapter) do modules.each { |mod| include(mod) } end end |