Module: Tk::CoreExtensions::Symbol

Defined in:
lib/ffi-tk/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_tclObject



110
111
112
# File 'lib/ffi-tk/core_extensions.rb', line 110

def to_tcl
  TclString.new(to_s.dump)
end

#to_tcl_optionObject



114
115
116
# File 'lib/ffi-tk/core_extensions.rb', line 114

def to_tcl_option
  TclString.new(to_s.sub(/\A(?=[^-])/, '-'))
end