Class: Triplifier::SimpleNode
- Inherits:
-
Object
- Object
- Triplifier::SimpleNode
- Includes:
- Node
- Defined in:
- lib/triplifier/simple_objects.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent) ⇒ SimpleNode
constructor
A new instance of SimpleNode.
Methods included from Node
#eval, included, #objects, #predicates, #resource, #to_turtle, #turtlify, #uri
Constructor Details
#initialize(parent) ⇒ SimpleNode
Returns a new instance of SimpleNode.
28 29 30 |
# File 'lib/triplifier/simple_objects.rb', line 28 def initialize(parent) @parent = parent end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
22 23 24 |
# File 'lib/triplifier/simple_objects.rb', line 22 def parent @parent end |
Class Method Details
.eval(&block) ⇒ Object
24 25 26 |
# File 'lib/triplifier/simple_objects.rb', line 24 def self.eval(&block) instance_eval(&block) end |