module Tk::CoreExtensions::String
Public Instance Methods
to_tcl()
click to toggle source
# File lib/ffi-tk/core_extensions.rb, line 101 def to_tcl TclString.new(%("#{gsub(/[\[\]{}$"\\]/, '\\\\\&')}")) end
to_tcl_option()
click to toggle source
# File lib/ffi-tk/core_extensions.rb, line 105 def to_tcl_option TclString.new(sub(/\A(?=[^-])/, '-')) end