るりまサーチ

最速Rubyリファレンスマニュアル検索!
4076件ヒット [701-800件を表示] (0.055秒)

別のキーワード

  1. irb/input-method new
  2. irb/input-method gets
  3. _builtin define_method
  4. irb/input-method encoding
  5. irb/input-method readable_atfer_eof?

キーワード

検索結果

<< < ... 6 7 8 9 10 ... > >>

WIN32OLE_METHOD#params -> [WIN32OLE_PARAM] (9224.0)

メソッドのパラメータ情報を取得します。

...メータをWIN32OLE_PARAMの配列として返します。配
列の最初の要素が最左端のパラメータに対応します。

@return WIN32OLE_PARAMの配列。無引数のメソッドであれば要素数0の配
列を返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel...
...ibrary', 'Workbook')
method
= WIN32OLE_METHOD.new(tobj, 'SaveAs')
p
method.params # => [Filename, FileFormat, Password, WriteResPassword,
ReadOnlyRecommended, CreateBackup, AccessMode,
ConflictResolution, AddToMru, TextCodepage,...

WIN32OLE_TYPE#ole_methods -> [WIN32OLE_METHOD] (9213.0)

型が持つメソッドのメタデータを取得します。

...ッドのメタデータをWIN32OLE_METHODの配列として返します。
メソッドを持たない場合は空配列を返します。


tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
method
s = tobj.ole_methods.map {|m| m.name }
#...
...=> ['QueryInterface', 'AddRef', 'Release',....]

@see WIN32OLE_METHOD...

WEBrick::HTTPResponse#request_method=(method) (9208.0)

リクエストの HTTP メソッドをセットします。 デフォルトは nil です。

...リクエストの HTTP メソッドをセットします。
デフォルトは nil です。

@param method リクエストの HTTP メソッドを文字列で指定します。...

Method#<<(callable) -> Proc (9142.0)

self と引数を合成した Proc を返します。

...成した Proc を返します。

戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します。

Method
#>> とは...
...出しの順序が逆になります。

@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。

//emlist[例][ruby]{
def f(x)
x * x
end

def g(x)
x + x
end

# (3 + 3) * (3 + 3)
p
(method(:f) << method(:g)).call(3) # => 36
//}

//emlist[call を...
...uby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end

File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT

p
ipeline = method(:pp) << WordScanner << File.method(:read)
p
ipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}

@see Proc#<<, Proc#>>...

Method#>>(callable) -> Proc (9142.0)

self と引数を合成した Proc を返します。

...成した Proc を返します。

戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を self に渡して呼び出し、
その戻り値を callable に渡して呼び出した結果を返します。

Method
#<< とは...
...出しの順序が逆になります。

@param callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。

//emlist[例][ruby]{
def f(x)
x * x
end

def g(x)
x + x
end

# (3 * 3) + (3 * 3)
p
(method(:f) >> method(:g)).call(3) # => 18
//}

//emlist[call を...
...uby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end

File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT

p
ipeline = File.method(:read) >> WordScanner >> method(:pp)
p
ipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}

@see Proc#<<, Proc#>>...

絞り込み条件を変える

TracePoint#method_id -> Symbol | nil (9131.0)

イベントが発生したメソッドの定義時の名前を Symbol で返します。 トップレベルであった場合は nil を返します。

...した場合に発生します。

//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end

trace = TracePoint.new(:call) do |tp|
p
[tp.method_id, tp.callee_id] # => [:method_name, :alias_name]
end
trace.enable do
C.new.alias_name
end
//}

@see TracePoint#callee_id...

WIN32OLE_METHOD#return_type_detail -> [String] (9130.0)

返り値の型と属性を取得します。

...tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
method
= WIN32OLE_METHOD.new(tobj, 'Workbooks')
p
method.return_type_detail # => ["PTR", "USERDEFINED", "Workbooks"]

属性が付加されていない場合は、WIN32OLE_METHOD#return_typeを要素と
した...
...配列が返ります。

返り値の取り得る属性値はCOMのIDL(インターフェイス定義言語)によって規
定されています。

@see http://msdn.microsoft.com/en-us/library/aa367042(VS.85).aspx...

WIN32OLE_METHOD#helpcontext -> Integer | nil (9124.0)

メソッドのヘルプコンテキストを取得します。

...を返します。

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbooks')
method
= WIN32OLE_METHOD.new(tobj, 'Add')
p
uts method.helpcontext # => 65717

WIN32OLE_METHODオブジェクトを引数として、WIN32OLE.ole_show_help
ヘルプファイルを表示する...
...場合には、WIN32OLEが内部で当メソッドを呼び出し
ます。

@see WIN32OLE.ole_show_help...

WIN32OLE_METHOD#helpfile -> String | nil (9124.0)

ヘルプファイルのパス名を取得します。

...obj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbooks')
method
= WIN32OLE_METHOD.new(tobj, 'Add')
p
uts method.helpfile # => C:\...\VBAXL9.CHM

メソッドにヘルプファイルが関連付けられている場合、WIN32OLE.ole_show_helpにWIN32OLE_METHODオブジェク...
...トを与えてヘルプファイルを表示できます。

@see WIN32OLE.ole_show_help...

UnboundMethod#inspect -> String (9118.0)

self を読みやすい文字列として返します。

...self を読みやすい文字列として返します。

詳しくは Method#inspect を参照してください。

//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}

@see Method#inspect...

絞り込み条件を変える

<< < ... 6 7 8 9 10 ... > >>