lib/rack/amf/environment.rb in rack-amf-0.0.4 vs lib/rack/amf/environment.rb in rack-amf-1.0.0

- old
+ new

@@ -1,10 +1,13 @@ module Rack::AMF + # Manages services if using the ServiceManager middleware, as well as the url + # to restrict AMF requests to, and the mode. The URL and mode are automatically + # set when you call <code>use Rack::AMF, options</code> in your rack + # application. module Environment class << self - attr_accessor :url, :mode, :debug, :services - debug = false # Set to off by default + attr_accessor :url, :mode, :services # Used to register a service for use with the ServiceManager middleware. # To register a service, simply pass in the root path for the service and # an object that can receive service calls. # @@ -19,16 +22,10 @@ # Populates the environment from the given options hash, which was passed # in through rack def populate options={} #:nodoc: url = options[:url] if options.key?(:url) - debug = options[:debug] if options.key?(:debug) mode = options[:mode] if options.key?(:mode) - end - - def log data #:nodoc: - return if !debug - puts data end end end end \ No newline at end of file