247件ヒット
[201-247件を表示]
(0.095秒)
クラス
- Binding (18)
- Module (24)
- NameError (10)
- Object (72)
- Thread (12)
- TracePoint (3)
-
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (96)
キーワード
- binding (3)
-
class
_ variables (12) - constants (12)
-
initialize
_ copy (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
local
_ variables (21) - name (12)
-
ole
_ type (12) -
ole
_ type _ detail (12) -
pretty
_ print _ instance _ variables (12) -
source
_ location (7) -
thread
_ variable _ set (12) -
to
_ s (12) - value (12)
-
variable
_ kind (12) - varkind (12)
- visible? (12)
検索結果
先頭5件
-
WIN32OLE
_ VARIABLE # name -> String (6019.0) -
変数名を取得します。
...変数名を取得します。
@return 変数名を文字列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables = tobj.variables
variables.each do |variable|
puts "#{variable.name}" # => xlChart, xlDialogSheet, ...
end... -
WIN32OLE
_ VARIABLE # to _ s -> String (6019.0) -
変数名を取得します。
...変数名を取得します。
@return 変数名を文字列で返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
variables = tobj.variables
variables.each do |variable|
puts "#{variable.name}" # => xlChart, xlDialogSheet, ...
end... -
WIN32OLE
_ VARIABLE # varkind -> Integer (6007.0) -
変数の種類(VARKIND)を取得します。
...@return VARKINDに対応する数値を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'XlSheetType')
puts tobj.variables.map {|v| v.varkind}.uniq # => 2
数値の意味については、WIN32OLE_VARIABLE#variable_kindの説明を参照してください。... -
Module
# constants(inherit = true) -> [Symbol] (3125.0) -
そのモジュール(またはクラス)で定義されている定数名の配列を返します。
...や include したモジュールで
定義された定数が対象にはなります。false を指定した場合 対象にはなりません。
@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Module#class_variables
//emlist[Module.cons......tants と Module#constants の違い][ruby]{
# 出力の簡略化のため起動時の定数一覧を取得して後で差し引く
$clist = Module.constants
class Foo
FOO = 1
end
class Bar
BAR = 1
# Bar は BAR を含む
p constants # => [:BAR]
# 出力に FOO......い
p Module.constants - $clist # => [:BAR, :Bar, :Foo]
class Baz
# Baz は定数を含まない
p constants # => []
# ネストしたクラスでは、外側のクラスで定義した定数は
# 参照可能なので、BAR は、Module.constants... -
TracePoint
# binding -> Binding | nil (107.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...は binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}...