Method: Tk::EncodedString#instance_variable_set
- Defined in:
- lib/tk/encodedstr.rb
#instance_variable_set(key, value) ⇒ Object
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/tk/encodedstr.rb', line 114 def instance_variable_set(key, value) if (key.to_s == '@encoding') if value self.force_encoding(value) else self.force_encoding(Tk::Encoding::UNKNOWN) end value else super(key, value) end end |