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.3.7 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.6 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.5 lib/airborne/optional_hash_type_expectations.rb
hops-airborne-0.2.17 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.4 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.3 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.2 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.1 lib/airborne/optional_hash_type_expectations.rb
airborne-0.3.0 lib/airborne/optional_hash_type_expectations.rb
hops-airborne-0.2.16 lib/airborne/optional_hash_type_expectations.rb
hops-airborne-0.2.15 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.13 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.12 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.11 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.10 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.9 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.8 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.7 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.6 lib/airborne/optional_hash_type_expectations.rb
airborne-0.2.5 lib/airborne/optional_hash_type_expectations.rb