Class: Raml::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/raml/node.rb

Direct Known Subclasses

PropertiesNode, Reference, ValueNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, parent) ⇒ Node

Returns a new instance of Node.



14
15
16
17
# File 'lib/raml/node.rb', line 14

def initialize(name, parent)
  @name   = name
  @parent = parent
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/raml/node.rb', line 9

def name
  @name
end

#parentRaml::Node

Returns the node’s parent.

Returns:



12
13
14
# File 'lib/raml/node.rb', line 12

def parent
  @parent
end