diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-17 19:44:31 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-17 19:44:31 +0000 |
commit | 0b38e9bc9d030539d1a2b70f7075a92b4c5b2213 (patch) | |
tree | fe64497512c27850f2489b400ccd51c0a121be93 /ext/psych/lib/psych/parser.rb | |
parent | eacee9d95f86b035263fe8ba570c19e133c29aae (diff) |
* ext/psych/lib/psych/parser.rb (Mark): Adding a class to wrap
marker information
* ext/psych/parser.c (mark): Add a method to return the mark object
for the parser
* test/psych/test_parser.rb: tests for the Mark class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych/parser.rb')
-rw-r--r-- | ext/psych/lib/psych/parser.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/parser.rb b/ext/psych/lib/psych/parser.rb index 0e38a4ae7d..5d75605d49 100644 --- a/ext/psych/lib/psych/parser.rb +++ b/ext/psych/lib/psych/parser.rb @@ -30,6 +30,9 @@ module Psych # construct an AST of the parsed YAML document. class Parser + class Mark < Struct.new(:index, :line, :column) + end + # The handler on which events will be called attr_accessor :handler |