Sha256: dc34806d015d43b6fe2db42937a6ce83d2de10b5f993a2dbab917d488098269c

Contents?: true

Size: 262 Bytes

Versions: 7

Compression:

Stored size: 262 Bytes

Contents

module Pears
  module Provider
    class Base
      attr_accessor :data
      def has_key?(key)
        @data.has_key? key
      end

      def each(&block)
        @data.block(&:yield)
      end

      def [](key)
        @data[key]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pears-0.0.7 lib/pears/provider/base.rb
pears-0.0.6 lib/pears/provider/base.rb
pears-0.0.5 lib/pears/provider/base.rb
pears-0.0.4 lib/pears/provider/base.rb
pears-0.0.3 lib/pears/provider/base.rb
pears-0.0.2 lib/pears/provider/base.rb
pears-0.0.1 lib/pears/provider/base.rb