Class: Brujula::LineNumberHandler
- Inherits:
-
Psych::TreeBuilder
- Object
- Psych::TreeBuilder
- Brujula::LineNumberHandler
- Defined in:
- lib/brujula/yaml_parser.rb
Instance Attribute Summary collapse
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
Instance Attribute Details
#parser ⇒ Object
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 |