Class: Tk::UTF8_String
- Inherits:
-
EncodedString
- Object
- String
- EncodedString
- Tk::UTF8_String
- Defined in:
- ext/lib/tk/encodedstr.rb
Constant Summary collapse
- Encoding =
'utf-8'.freeze
Class Method Summary collapse
Instance Method Summary collapse
- #to_backslash_sequence ⇒ Object (also: #to_backslash)
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
174 175 176 |
# File 'ext/lib/tk/encodedstr.rb', line 174 def self.new(str) super(self.subst_utf_backslash(str)) end |
Instance Method Details
#to_backslash_sequence ⇒ Object Also known as: to_backslash
178 179 180 |
# File 'ext/lib/tk/encodedstr.rb', line 178 def to_backslash_sequence Tk::EncodedString.utf_to_backslash_sequence(self) end |