module Sandboxy
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/sandboxy/configuration.rb, line 33 def self.configure self.configuration ||= Configuration.new yield configuration end
environment()
click to toggle source
# File lib/sandboxy/configuration.rb, line 7 def environment $sandboxy ||= Sandboxy.configuration.default $sandboxy end
environment=(value)
click to toggle source
# File lib/sandboxy/configuration.rb, line 12 def environment=(value) $sandboxy = value end
environment?(value)
click to toggle source
# File lib/sandboxy/configuration.rb, line 28 def environment?(value) environment == value end
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/sandboxy/configuration.rb, line 16 def method_missing(method, *args) if method.to_s[/(.+)_environment?/] environment?($1) else super end end
respond_to_missing?(method, include_private = false)
click to toggle source
Calls superclass method
# File lib/sandboxy/configuration.rb, line 24 def respond_to_missing?(method, include_private = false) super || method.to_s[/(.+)_environment?/] end