Method: TkComm#subst
- Defined in:
- lib/tk.rb
#subst(str, *opts) ⇒ Object
666 667 668 669 670 671 672 673 |
# File 'lib/tk.rb', line 666 def subst(str, *opts) # opts := :nobackslashes | :nocommands | novariables tk_call('subst', *(opts.collect{|opt| opt = opt.to_s (opt[0] == ?-)? opt: '-' << opt } << str)) end |