module Tk::CoreExtensions::Integer

Public Instance Methods

tcl_to_ruby(option, hints) click to toggle source
# File lib/ffi-tk/core_extensions.rb, line 133
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
to_boolean() click to toggle source
# File lib/ffi-tk/core_extensions.rb, line 146
def to_boolean
  Tk.boolean(self)
end