Sha256: 072ecc5c2ee6906f4d630f62b5888dcbf9bca52dea5c17d5dcc8dd1cdbd5068e

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

# Ruby's DelegateClass expects the delegate to support the second
# optional argument to Object#respond_to?. Hashie::Mash doesn't
# currently define the method in this way, so we provide a module
# that is #extend'ed into each Hashie::Mash instance that we create.
module LetsFreckle
  module Extensions
    module Mash
      def respond_to?(sym, include_private=false)
        super(sym)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
letsfreckle-client-0.2.1 lib/letsfreckle/extensions/mash.rb
letsfreckle-client-0.2.0 lib/letsfreckle/extensions/mash.rb
letsfreckle-client-0.1.2 lib/letsfreckle/extensions/mash.rb
letsfreckle-client-0.1.1 lib/letsfreckle/extensions/mash.rb
letsfreckle-client-0.1.0 lib/letsfreckle/extensions/mash.rb