Class: RbYAML::ScalarNode
Instance Attribute Summary collapse
-
#style ⇒ Object
Returns the value of attribute style.
Attributes inherited from Node
#end_mark, #start_mark, #tag, #value
Instance Method Summary collapse
- #__is_scalar ⇒ Object
-
#initialize(tag, value, start_mark = nil, end_mark = nil, style = nil) ⇒ ScalarNode
constructor
A new instance of ScalarNode.
- #tid ⇒ Object
Methods inherited from Node
#__is_collection, #__is_mapping, #__is_sequence, #hash, #to_s
Constructor Details
#initialize(tag, value, start_mark = nil, end_mark = nil, style = nil) ⇒ ScalarNode
Returns a new instance of ScalarNode.
25 26 27 28 |
# File 'lib/rbyaml/nodes.rb', line 25 def initialize(tag, value,start_mark=nil,end_mark=nil,style=nil) super(tag,value,start_mark,end_mark) @style = style end |
Instance Attribute Details
#style ⇒ Object
Returns the value of attribute style.
23 24 25 |
# File 'lib/rbyaml/nodes.rb', line 23 def style @style end |