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