Module SemanticRecord::Support
In: lib/semantic_record/support.rb

Methods

expand  

Public Instance methods

[Source]

    # File lib/semantic_record/support.rb, line 4
 4:       def expand
 5:         ns, predicate = self.id2name.split("_")
 6:         if predicate.blank? 
 7:           raise Namespaces::NoPredicateError, "no valid predicate defined"
 8:         end
 9:         namespace = Namespaces.resolve(ns)
10: 
11:         predicate = predicate.chomp("=")
12:         
13:         return namespace + predicate
14:       end

[Validate]