Class: Tk::TkTable::CellCommand::ValidateArgs

Inherits:
TkUtil::CallbackSubst show all
Defined in:
lib/tkextlib/tktable/tktable.rb

Constant Summary collapse

KEY_TBL =
[
  [ ?c, ?n, :column ],
  [ ?C, ?s, :index ],
  [ ?i, ?m, :rw_mode ],
  [ ?r, ?n, :row ],
  [ ?s, ?v, :value ],
  [ ?W, ?w, :widget ],
  nil
]
PROC_TBL =
[
  [ ?n, TkComm.method(:number) ],
  [ ?s, TkComm.method(:string) ],
  [ ?w, TkComm.method(:window) ],
  [ ?m, proc{|val| (val == '0')? (:r) : (:w)} ],
  [ ?v, proc{|val| TkComm.tk_tcl2ruby(val, true, false)} ],
  nil
]

Class Method Summary collapse

Methods inherited from TkUtil::CallbackSubst

_define_attribute_aliases, _get_all_subst_keys, _get_extra_args_tbl, _get_subst_key, _setup_subst_table, _sym2subst, #initialize, inspect, scan_args, subst_arg

Constructor Details

This class inherits a constructor from TkUtil::CallbackSubst

Class Method Details

.ret_val(val) ⇒ Object



383
384
385
# File 'lib/tkextlib/tktable/tktable.rb', line 383

def self.ret_val(val)
  TkComm._get_eval_string(val)
end