Class: Tk::UTF8_String

Inherits:
EncodedString show all
Defined in:
lib/tk/encodedstr.rb

Constant Summary collapse

Encoding =
'utf-8'.freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EncodedString

#__encoding, #__instance_eval, #__instance_variable_get, #__instance_variable_set, #__instance_variables, #encoding, #initialize, #instance_eval, #instance_variable_get, #instance_variable_set, #instance_variables, new_with_utf_backslash, new_without_utf_backslash, subst_tk_backslash, subst_utf_backslash, to_backslash_sequence, utf_backslash, utf_to_backslash, utf_to_backslash_sequence

Constructor Details

This class inherits a constructor from Tk::EncodedString

Class Method Details

.new(str) ⇒ Object



175
176
177
# File 'lib/tk/encodedstr.rb', line 175

def self.new(str)
  super(self.subst_utf_backslash(str))
end

Instance Method Details

#to_backslash_sequenceObject Also known as: to_backslash



179
180
181
# File 'lib/tk/encodedstr.rb', line 179

def to_backslash_sequence
  Tk::EncodedString.utf_to_backslash_sequence(self)
end