diff options
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/quickpath.rb | 4 | ||||
-rw-r--r-- | lib/rexml/text.rb | 2 | ||||
-rw-r--r-- | lib/rexml/xpath_parser.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb index f3ad29a93a..5d6c77ca38 100644 --- a/lib/rexml/quickpath.rb +++ b/lib/rexml/quickpath.rb @@ -194,7 +194,7 @@ module REXML case res when true results << element - when Fixnum + when Integer results << element if Functions.pair[0] == res when String results << element @@ -230,7 +230,7 @@ module REXML case res when true results << element - when Fixnum + when Integer results << element if Functions.pair[0] == res end end diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index b132bab8f4..9ea8ba9df3 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -33,7 +33,7 @@ module REXML VALID_XML_CHARS = Regexp.new('^['+ VALID_CHAR.map { |item| case item - when Fixnum + when Integer [item].pack('U').force_encoding('utf-8') when Range [item.first, '-'.ord, item.last].pack('UUU').force_encoding('utf-8') diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb index edd1127735..181b2b6e85 100644 --- a/lib/rexml/xpath_parser.rb +++ b/lib/rexml/xpath_parser.rb @@ -17,7 +17,7 @@ class Symbol # to use across multiple Object types def dclone ; self ; end end -class Fixnum +class Integer # provides a unified +clone+ operation, for REXML::XPathParser # to use across multiple Object types def dclone ; self ; end |