Module: TclTkLib
- Defined in:
- ext/lib/tk.rb
Class Method Summary collapse
- ._encoding= ⇒ Object
- .default_encoding=(name) ⇒ Object
- .encoding=(name) ⇒ Object
- .encoding_name ⇒ Object (also: encoding, default_encoding)
- .encoding_obj ⇒ Object
- .force_default_encoding=(mode) ⇒ Object
- .force_default_encoding? ⇒ Boolean
Class Method Details
._encoding= ⇒ Object
2966 |
# File 'ext/lib/tk.rb', line 2966 alias _encoding= encoding= |
.default_encoding=(name) ⇒ Object
2961 2962 2963 |
# File 'ext/lib/tk.rb', line 2961 def default_encoding=(name) TkCore::INTERP.default_encoding = name end |
.encoding=(name) ⇒ Object
2967 2968 2969 2970 |
# File 'ext/lib/tk.rb', line 2967 def encoding=(name) name = name.name if name.kind_of?(::Encoding) if Tk::WITH_ENCODING TkCore::INTERP.encoding = name end |
.encoding_name ⇒ Object Also known as: encoding, default_encoding
2972 2973 2974 |
# File 'ext/lib/tk.rb', line 2972 def encoding_name TkCore::INTERP.encoding end |
.encoding_obj ⇒ Object
2978 2979 2980 2981 2982 2983 2984 |
# File 'ext/lib/tk.rb', line 2978 def encoding_obj if Tk::WITH_ENCODING Tk::Encoding.tcl2rb_encoding(TkCore::INTERP.encoding) else TkCore::INTERP.encoding end end |