Sha256: 93decf77fa2eceb7ba35dae00d281e177f5f32a360622f69b45130c37d0e6e7e

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

module Breadboard
  module Config
    class Environment
      def initialize
        @environments = {}
      end

      def test(url=nil)
        return @environments[:test] if url.nil?
        @environments[:test] = URI.parse url
      end

      def method_missing(method_name, *args, &block)
        return @environments[method_name] if args.length == 0
        @environments[method_name] = URI.parse args.first 
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
breadboard-1.0.0 lib/breadboard/environment.rb
breadboard-1.0.0.beta.2 lib/breadboard/environment.rb
breadboard-1.0.0.beta.1 lib/breadboard/environment.rb
breadboard-1.0.0.alpha.3 lib/breadboard/environment.rb
breadboard-1.0.0.alpha.2 lib/breadboard/environment.rb