Sha256: f09f4da0ebd29705f333f83a04ec4919200708e01db55f326fc428f7f0637156

Contents?: true

Size: 321 Bytes

Versions: 25

Compression:

Stored size: 321 Bytes

Contents

module Airborne
  class OptionalHashTypeExpectations
    include Enumerable
    attr_accessor :hash
    def initialize(hash)
      @hash = hash
    end

    def each
      @hash.each do|k, v|
        yield(k, v)
      end
    end

    def [](val)
      @hash[val]
    end

    def keys
      @hash.keys
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
airborne-0.2.4 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.3 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.2 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.1 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.0 lib/airborne/optional_hash_type_expectations.rb