Class: Flatito::YAMLWithLineNumber::NodesScalar

Inherits:
Psych::Nodes::Scalar
  • Object
show all
Defined in:
lib/flatito/yaml_with_line_number.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject (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