Sha256: 9e2eb3010c35bf58fa6f690d940939fad11aaf5c773786c88771cfec92fcc0aa
Contents?: true
Size: 704 Bytes
Versions: 21
Compression:
Stored size: 704 Bytes
Contents
module Neo4j module Wrapper module Property module InstanceMethods # Return a hash of 'public' properties. # If there is an accessor method available it will use that. # That means you can override the returned value of the property by implementing a method of the same name # as the property. All properteis not starting with <tt>_</tt> are considered public. # @return [Hash] hash of properties with keys not starting with <tt>_</tt> def attributes attr = props ret = {} attr.each_pair { |k, v| ret[k] = respond_to?(k) ? send(k) : v unless k.to_s[0] == ?_ } ret end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems