Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > tk/variableライブラリ > TkVariableクラス
クラスの継承リスト: TkVariable
< Tk
< TkCore
< TkComm
< TkUtil
< TkEvent
< Comparable
< Object
< Kernel
< BasicObject
extend: TkCore
Tclの変数をアクセスするためのクラスです。 ((-Tclの配列としての振る舞いは仕様が不安定のようです-))
require "tk" p TkVariable.new(0).value # => "0" p TkVariable.new(1.2).value # => "1.2" p TkVariable.new(["a", "b"]).value # => {"0"=>"a", "1"=>"b"} p TkVariable.new(1=>"a", 2=>"b").value # => {"1"=>"a", "2"=>"b"}
定義 | 説明 | |
---|---|---|
callback(args)
|
TkVariable#traceにより登録されたProcオブジェクトを実行します。 args は、 [TkVariableのインスタンス, "キー", "操作"] である配列です。 |
|
new(val="")
|
値がvalであるTkVariableオブジェクトを生成します。valが Array または Hash のオブジェクトである場合、生成されたインス タンスは Tclの配列として振る舞います。 |
|
new_hash(val = {})
|
定義 | 説明 | |
---|---|---|
TkCommandNames
|
||
TkVar_CB_TBL
|
コールバック関数を記録するハッシュです。内部で利用しています。 |
|
TkVar_ID_TBL
|
||
Tk_VARIABLE_ID
|
Tclレベルの変数名をインスタンスに割り当てるために内部で利用されています。 |
|
USE_TCLs_SET_VARIABLE_FUNCTIONS
|
!
!=
<
<=
>
>=
between?
===
__id__
__send__
_dump
class
clone
dclone
display
enum_for
eql?
equal?
extend
freeze
frozen?
hash
initialize
initialize_copy
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
marshal_dump
marshal_load
method
method_missing
methods
must_be
must_be_close_to
must_be_empty
must_be_instance_of
must_be_kind_of
must_be_nil
must_be_same_as
must_be_within_epsilon
must_equal
must_include
must_match
must_raise
must_respond_to
must_send
must_throw
nil?
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
public_methods
remove_instance_variable
respond_to?
respond_to_missing?
singleton_class
singleton_method_added
singleton_method_removed
singleton_method_undefined
singleton_methods
taint
tainted?
tap
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_str
to_yaml
to_yaml_properties
to_yaml_style
trust
untaint
untrust
untrusted?
wont_be
wont_be_close_to
wont_be_empty
wont_be_instance_of
wont_be_kind_of
wont_be_nil
wont_be_same_as
wont_be_within_epsilon
wont_equal
wont_include
wont_match
wont_respond_to
root
::AUTO_PATH
::JAPANIZED_TK
::LIBRARY_PATH
::PACKAGE_PATH
::TCL_LIBRARY_PATH
::TCL_MAJOR_VERSION
::TCL_MINOR_VERSION
::TCL_PACKAGE_PATH
::TCL_PATCHLEVEL
::TCL_PRECISION
::TCL_VERSION
::TK_MAJOR_VERSION
::TK_MINOR_VERSION
::TK_PATCHLEVEL
::TK_VERSION
::Tkextlib_RELEASE_DATE
bind
bind_all
bind_append
bind_append_all
bind_remove
bind_remove_all
bindinfo
bindinfo_all
subst
::GET_CONFIGINFO_AS_ARRAY
::GET_CONFIGINFOwoRES_AS_ARRAY
::TkExtlibAutoloadModule
::Tk_CMDTBL
::Tk_IDs
::Tk_WINDOWS
::USE_TCLs_LIST_FUNCTIONS
::WidgetClassNames
_tk_call_to_list_core
after
after_cancel
after_idle
appname
appsend
appsend_deny
appsend_displayof
callback_break
callback_continue
callback_return
chooseColor
chooseDirectory
do_one_event
event_generate
getMultipleOpenFile
getMultipleSaveFile
getOpenFile
getSaveFile
get_eventloop_tick
get_eventloop_weight
get_no_event_wait
inactive
inactive_displayof
info
ip_eval
ip_eval_with_enc
ip_eval_without_enc
ip_invoke
ip_invoke_with_enc
ip_invoke_without_enc
is_mainloop?
load_cmd_on_ip
mainloop
mainloop_exist?
mainloop_thread?
mainloop_watchdog
messageBox
rb_appsend
rb_appsend_displayof
reset_inactive
reset_inactive_displayof
restart
scaling
scaling_displayof
set_eventloop_ticktimer_tick
set_eventloop_weight
set_no_event_wait
tk_call
tk_call_to_list
tk_call_to_list_with_enc
tk_call_to_list_without_enc
tk_call_to_simplelist
tk_call_to_simplelist_with_enc
tk_call_to_simplelist_without_enc
tk_call_with_enc
tk_call_without_enc
windowingsystem
::EventFlag
::INTERP
::WIDGET_DESTROY_HOOK
install_bind
install_bind_for_event_class
_conv_args
_fromUTF8
_get_eval_enc_str
_get_eval_string
_symbolkey2str
_toUTF8
bool
hash_kv
num_or_str
number
string
::None
::RELEASE_DATE