Class: Triplifier::SimpleNode

Inherits:
Object
  • Object
show all
Includes:
Node
Defined in:
lib/triplifier/simple_objects.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#parentObject

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