105 106 107 108 109 110 111 112 113 114 115 116
# File 'lib/ffi-tk/core_extensions.rb', line 105 def tcl_to_ruby(option, hints) name = option.sub(/^-/, '').to_sym if type = hints[name] case type when :boolean Tk.boolean(self) else self end end end
118 119 120
# File 'lib/ffi-tk/core_extensions.rb', line 118 def to_boolean Tk.boolean(self) end