Sha256: dd943670c56f664bfdfa8ecca911c7186deda14c7fedd37564cf3926408ff75a
Contents?: true
Size: 886 Bytes
Versions: 9
Compression:
Stored size: 886 Bytes
Contents
module Neo4j module Core module Wrapper module ClassMethods # Tries to load a wrapper for this node if possible # @see #wrapper_proc= def wrapper(entity) @_wrapper_proc ? @_wrapper_proc.call(entity) : entity end # Sets the procs to be used to load wrappers # @see #wrapper def wrapper_proc=(proc) @_wrapper_proc = proc end def default_protected_keys %w(_neo_id _classname) end # @return [Array<String] which property keys are considered private, e.g. only used by a wrapper def protected_keys @_protected_keys || default_protected_keys end # let the wrapper tell which property keys should be considered private def protected_keys=(pk) @_protected_keys = pk end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems