Class: Raml::ValueNode

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

Direct Known Subclasses

Schema, Template

Instance Attribute Summary collapse

Attributes inherited from Node

#name, #parent

Instance Method Summary collapse

Methods inherited from Node

#document, relative_path

Constructor Details

#initialize(name, value, parent) ⇒ ValueNode

Returns a new instance of ValueNode.



98
99
100
101
102
103
# File 'lib/raml/node.rb', line 98

def initialize(name, value, parent)
  super name, parent
  @value  = value

  validate_value if respond_to? :validate_value, true
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



96
97
98
# File 'lib/raml/node.rb', line 96

def value
  @value
end