Sha256: b645d19a1c57c860d0a104fd8812210bc8108ae307302075ec68097fb63fde90

Contents?: true

Size: 320 Bytes

Versions: 6

Compression:

Stored size: 320 Bytes

Contents

module CaptainHoog
  class Env < Hash

    def method_missing(meth_name, *args, &block)
      if self.has_key?(meth_name)
        return self[meth_name]
      else
        super
      end
    end

    def respond_to_missing?(meth_name, include_private = false)
      self.has_key?(meth_name) || super
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
captain_hoog-2.0.0 lib/captain_hoog/env.rb
captain_hoog-1.1.1 lib/captain_hoog/env.rb
captain_hoog-1.1.0 lib/captain_hoog/env.rb
captain_hoog-1.0.2 lib/captain_hoog/env.rb
captain_hoog-1.0.1 lib/captain_hoog/env.rb
captain_hoog-1.0 lib/captain_hoog/env.rb