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.
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
#value ⇒ Object
Returns the value of attribute value.
36 37 38 |
# File 'lib/raml/node.rb', line 36 def value @value end |