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

Constructor Details

#initialize(name, value, parent) ⇒ ValueNode

Returns a new instance of ValueNode.


38
39
40
41
42
43
# File 'lib/raml/node.rb', line 38

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


36
37
38
# File 'lib/raml/node.rb', line 36

def value
  @value
end