Class: Raml::ValueNode
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, value, parent) ⇒ ValueNode
constructor
A new instance of ValueNode.
Methods inherited from Node
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
#value ⇒ Object
Returns the value of attribute value.
96 97 98 |
# File 'lib/raml/node.rb', line 96 def value @value end |