Module: ROM::Roda::Plugin::ClassMethods
- Defined in:
- lib/rom/roda/plugin.rb
Instance Method Summary collapse
Instance Method Details
#freeze ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/rom/roda/plugin.rb', line 36 def freeze @__rom__ = ROM::Roda::Plugin.environments.each_with_object({}) do |(name, env), container| container[name] = env.finalize.container end super end |
#rom(environment = nil) ⇒ Object
44 45 46 47 |
# File 'lib/rom/roda/plugin.rb', line 44 def rom(environment = nil) environment = :default if environment.nil? @__rom__.fetch(environment) end |