module Crossdomain::Config
Public Instance Methods
[](key)
click to toggle source
# File lib/crossdomain/config.rb, line 7 def [](key) options[key] end
load(opts={})
click to toggle source
# File lib/crossdomain/config.rb, line 3 def load(opts={}) options.update opts end
method_missing(meth, *args, &blk)
click to toggle source
# File lib/crossdomain/config.rb, line 17 def method_missing(meth, *args, &blk) options[meth] end
options()
click to toggle source
# File lib/crossdomain/config.rb, line 11 def options @options ||= { host: '0.0.0.0', port: '843', xml_path: File.join(Dir.pwd, 'crossdomain.xml') } end