Class: Psych::Nodes::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/psych/exts.rb

Overview

Psych’s first step is to parse the Yaml into an AST of Node objects so we open the Node class and add a way to track the line.

Instance Attribute Summary collapse

Instance Attribute Details

#lineObject

Returns the value of attribute line.



8
9
10
# File 'lib/psych/exts.rb', line 8

def line
  @line
end