diff options
| author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-12 12:08:52 +0000 |
|---|---|---|
| committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-12 12:08:52 +0000 |
| commit | 2f5bd9d6d7c0a1520713e63b941f7f7c7dfd340e (patch) | |
| tree | 8c1af789ecbdd10533ff280b1f686bd89df2999d /lib/rexml/source.rb | |
| parent | ab5c006a9943af0889e0e48be03f4932e70b28d8 (diff) | |
| download | ruby-2f5bd9d6d7c0a1520713e63b941f7f7c7dfd340e.tar.gz ruby-2f5bd9d6d7c0a1520713e63b941f7f7c7dfd340e.tar.xz ruby-2f5bd9d6d7c0a1520713e63b941f7f7c7dfd340e.zip | |
* Fixed the inheritance bug in the pull parser that James Britt found.
* Indentation changes, and changed some exceptions to runtime
exceptions.
* Backed out the patch that changed the versions
* Wasn't including Text class.
* Fixes issue:25 (Trac)
* Fixes ticket:3 (Issue38 in Roundup.)
* Numerous fixes in the XPath interpreter correcting, among other
things, ordering bugs and some incorrect behavior.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/source.rb')
| -rw-r--r-- | lib/rexml/source.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb index 725166616..f599d2276 100644 --- a/lib/rexml/source.rb +++ b/lib/rexml/source.rb @@ -98,6 +98,10 @@ module REXML @buffer == "" end + def position + @orig.index( @buffer ) + end + # @return the current line in the source def current_line lines = @orig.split @@ -194,6 +198,10 @@ module REXML super and ( @source.nil? || @source.eof? ) end + def position + @er_source.pos + end + # @return the current line in the source def current_line begin |
