Class: Flatito::YAMLWithLineNumber::NodesScalar
- Inherits:
-
Psych::Nodes::Scalar
- Object
- Psych::Nodes::Scalar
- Flatito::YAMLWithLineNumber::NodesScalar
- Defined in:
- lib/flatito/yaml_with_line_number.rb
Instance Attribute Summary collapse
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
-
#initialize(*args, line_number) ⇒ NodesScalar
constructor
A new instance of NodesScalar.
Constructor Details
#initialize(*args, line_number) ⇒ NodesScalar
Returns a new instance of NodesScalar.
40 41 42 43 |
# File 'lib/flatito/yaml_with_line_number.rb', line 40 def initialize(*args, line_number) super(*args) @line_number = line_number end |
Instance Attribute Details
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
38 39 40 |
# File 'lib/flatito/yaml_with_line_number.rb', line 38 def line_number @line_number end |