422件ヒット
[1-100件を表示]
(0.032秒)
ライブラリ
- ビルトイン (153)
- erb (12)
- pp (12)
-
rexml
/ document (36) -
webrick
/ cgi (12) - win32ole (120)
クラス
- Binding (11)
- ERB (12)
- Module (12)
- NameError (10)
- Object (60)
-
REXML
:: XPath (36) - Thread (12)
-
WEBrick
:: CGI (12) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (96)
モジュール
- Kernel (60)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
-
WIN32OLE
_ VARIABLE (12) -
class
_ variables (12) - each (12)
- first (12)
-
global
_ variables (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
local
_ variables (33) - match (12)
- name (12)
- new (12)
-
ole
_ type (12) -
ole
_ type _ detail (12) -
pretty
_ print _ instance _ variables (12) -
rb
_ f _ global _ variables (12) -
rb
_ f _ local _ variables (12) -
rb
_ mod _ class _ variables (12) -
rb
_ obj _ instance _ variables (12) - start (12)
-
thread
_ variable _ set (12) -
to
_ s (12) -
trace
_ var (36) - value (12)
-
variable
_ kind (12) - varkind (12)
- visible? (12)
- 変数と定数 (12)
検索結果
先頭5件
-
WIN32OLE
_ TYPE # variables -> [WIN32OLE _ VARIABLE] (24325.0) -
型が持つ変数を取得します。
...型がEnum(列挙型)やユーザ定義型の場合、メンバ変数の情報を
WIN32OLE_VARIABLEオブジェクトの配列として返します。
@return 型が持つ変数情報をWIN32OLE_VARIABLEの配列として返します。
変数を持たない場合は空配列を返し......
vars = tobj.variables
vars.each do |v|
puts "#{v.name} = #{v.value}"
end
上記を実行すると以下の出力が得られます。
xlChart = -4109
xlDialogSheet = -4116
xlExcel4IntlMacroSheet = 4
xlExcel4MacroSheet = 3
xlWorksheet = -4167
@see WIN32OLE_V... -
VALUE rb
_ mod _ class _ variables(VALUE obj) (12400.0) -
-
VALUE rb
_ obj _ instance _ variables(VALUE obj) (12400.0) -
-
VALUE rb
_ f _ global _ variables(void) (12300.0) -
-
static VALUE rb
_ f _ local _ variables(void) (12300.0) -
-
Module
# class _ variables(inherit = true) -> [Symbol] (12237.0) -
クラス/モジュールに定義されているクラス変数の名前の配列を返します。
...@@var1 = 1
end
class Two < One
@@var2 = 2
end
One.class_variables # => [:@@var1]
Two.class_variables # => [:@@var2, :@@var1]
Two.class_variables(false) # => [:@@var2]
//}
@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Mo... -
Kernel
. # global _ variables -> [Symbol] (12225.0) -
プログラム中で定義されているグローバル変数(`$'で始まる変数)名の 配列を返します。
...グラム中で定義されているグローバル変数(`$'で始まる変数)名の
配列を返します。
//emlist[例][ruby]{
p global_variables #=> [:$;, :$-F, :$@, ... ]
//}
@see Kernel.#local_variables,Object#instance_variables,Module.constants,Module#constants,Module#class_variables... -
Kernel
. # local _ variables -> [Symbol] (12225.0) -
現在のスコープで定義されているローカル変数名の配列を返します。
...現在のスコープで定義されているローカル変数名の配列を返します。
//emlist[例][ruby]{
yuyu = 0
p local_variables #=> [:yuyu]
//}
@see Kernel.#global_variables,Object#instance_variables,Module.constants,Module#constants,Module#class_variables... -
Object
# instance _ variables -> [Symbol] (12225.0) -
オブジェクトのインスタンス変数名をシンボルの配列として返します。
...列として返します。
//emlist[][ruby]{
obj = Object.new
obj.instance_eval { @foo, @bar = nil }
p obj.instance_variables
#=> [:@foo, :@bar]
//}
@see Object#instance_variable_get, Kernel.#local_variables, Kernel.#global_variables, Module.constants, Module#constants, Module#class_variables...