Sha256: 1a2ac89d7f3f2dce8853e592b09a78b63e4ced9e37b45083d7534493f7ff3344
Contents?: true
Size: 741 Bytes
Versions: 6
Compression:
Stored size: 741 Bytes
Contents
class String # Standard in Ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/String.html] def ascii_only? !(self =~ /[^\x00-\x7f]/) end unless method_defined? :ascii_only? # Standard in Ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/String.html] def clear self[0,length] = "" self end unless method_defined? :clear # Standard in Ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/String.html] public :codepoints # Definition in 1.8.8/string.rb # Standard in Ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/String.html] alias_method :each_codepoint, :codepoints unless method_defined? :each_codepoint end
Version data entries
6 entries across 6 versions & 1 rubygems