Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/utf8/string.rb,
lib/utf8/version.rb

Direct Known Subclasses

UTF8

Defined Under Namespace

Classes: UTF8

Instance Method Summary collapse

Instance Method Details

#as_utf8Object

Wraps your string in an UTF8-aware version of String



3
4
5
# File 'lib/utf8/string.rb', line 3

def as_utf8
  String::UTF8.new(self)
end