lib/active_fedora/rdf/term.rb
##
# Build a child resource or return it from this object's cache
#
# Builds the resource from the class_name specified for the
# property.
Build a child resource or return it from this object's cache
Builds the resource from the class_name specified for the
property.
Build a child resource or return it from this object ' s cache Builds the resource from the class_name specified for the property .
def make_node(value)
      klass = class_for_value(value)
      value = RDF::Node.new if value.nil?
      node = node_cache[value] if node_cache[value]
      node ||= klass.from_uri(value,parent)
      return nil if property_config[:class_name] && class_for_value(value) != class_for_property
      self.node_cache[value] ||= node
      node
    end
def make_node ( value ) klass = class_for_value ( value ) value = RDF :: Node . new if value . nil? node = node_cache [ value ] if node_cache [ value ] node ||= klass . from_uri ( value , parent ) return nil if property_config [ :class_name ] && class_for_value ( value ) != class_for_property self . node_cache [ value ] ||= node node end
Build a child resource or return it from this object's cache
Builds the resource from the class_name specified for the
property.
Build a child resource or return it from this object ' s cache Builds the resource from the class_name specified for the property .
value