module ROM::Roda::Plugin::ClassMethods

Public Instance Methods

freeze() click to toggle source
Calls superclass method
# 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) click to toggle source
# File lib/rom/roda/plugin.rb, line 44
def rom(environment = nil)
  environment = :default if environment.nil?
  @__rom__.fetch(environment)
end