Class: Brujula::LineNumberHandler

Inherits:
Psych::TreeBuilder
  • Object
show all
Defined in:
lib/brujula/yaml_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parserObject

Returns the value of attribute parser.



43
44
45
# File 'lib/brujula/yaml_parser.rb', line 43

def parser
  @parser
end

Instance Method Details

#scalar(value, anchor, tag, plain, quoted, style) ⇒ Object



45
46
47
48
49
50
# File 'lib/brujula/yaml_parser.rb', line 45

def scalar value, anchor, tag, plain, quoted, style
  mark = parser.mark
  s = super
  s._brujula_line = mark.line
  s
end