Public Instance methods
configure(*envs)
If no environments are given or one of the given environments matches the current environment, yield the receiver to the block.
[show source]
# File lib/roda/plugins/environments.rb 55 def configure(*envs) 56 if envs.empty? || envs.any?{|s| s == environment} 57 yield self 58 end 59 end
environment=(v)
Override the environment for the application, instead of using RACK_ENV.
[show source]
# File lib/roda/plugins/environments.rb 63 def environment=(v) 64 opts[:environment] = v 65 end