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