Sha256: 04c581a93d62f27542007e8e1a84dd7ba3e4888f6d4eb2c7a6927c56309fee78

Contents?: true

Size: 526 Bytes

Versions: 3

Compression:

Stored size: 526 Bytes

Contents

module Hashie
  module Extensions
    module Dash
      module IndifferentAccess
        def self.included(base)
          base.extend ClassMethods
          base.send :include, Hashie::Extensions::IndifferentAccess
        end

        module ClassMethods
          # Check to see if the specified property has already been
          # defined.
          def property?(name)
            name = name.to_s
            !!properties.find { |property| property.to_s == name }
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
whos_dated_who-0.1.0 vendor/bundle/gems/hashie-3.0.0/lib/hashie/extensions/dash/indifferent_access.rb
whos_dated_who-0.0.1 vendor/bundle/gems/hashie-3.0.0/lib/hashie/extensions/dash/indifferent_access.rb
hashie-3.0.0 lib/hashie/extensions/dash/indifferent_access.rb