2559件ヒット
[1-100件を表示]
(0.047秒)
別のキーワード
種類
- インスタンスメソッド (2078)
- 特異メソッド (265)
- モジュール関数 (192)
- クラス (24)
ライブラリ
- ビルトイン (1390)
-
cgi
/ core (24) -
cgi
/ html (96) - delegate (36)
- erb (48)
- fileutils (12)
- forwardable (96)
-
irb
/ cmd / help (12) -
irb
/ context (12) -
irb
/ extend-command (24) -
irb
/ input-method (36) -
irb
/ output-method (72) - json (120)
-
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ imap (24) - objspace (12)
- openssl (132)
- pp (12)
- psych (8)
- rake (12)
-
rdoc
/ context (36) -
rdoc
/ stats (12) -
shell
/ command-processor (6) -
webrick
/ cgi (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (12) - win32ole (288)
クラス
- Array (10)
- BasicObject (72)
- CGI (24)
- Delegator (36)
- ERB (36)
- Enumerator (62)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: FileInputMethod (12) -
IRB
:: OutputMethod (60) -
IRB
:: ReadlineInputMethod (12) -
IRB
:: StdioInputMethod (12) -
IRB
:: StdioOutputMethod (12) - Method (116)
-
MiniTest
:: Unit (1) - Module (488)
-
Net
:: IMAP (24) - NoMethodError (19)
- Object (217)
-
OpenSSL
:: SSL :: SSLContext (120) -
OpenSSL
:: X509 :: Store (12) - PP (12)
- Proc (26)
-
RDoc
:: Context (36) -
RDoc
:: Stats (12) - Regexp (48)
-
RubyVM
:: InstructionSequence (36) -
Shell
:: CommandProcessor (6) - String (36)
- Thread (12)
- TracePoint (19)
- UnboundMethod (48)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (84)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (48) -
WIN32OLE
_ PARAM (120)
モジュール
-
CGI
:: HtmlExtension (96) -
ERB
:: DefMethod (12) - FileUtils (12)
- Forwardable (48)
-
IRB
:: ExtendCommandBundle (24) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (144)
- Marshal (24)
-
MiniTest
:: Assertions (1) - ObjectSpace (12)
-
RubyVM
:: AbstractSyntaxTree (10) - SingleForwardable (48)
オブジェクト
- main (24)
キーワード
- << (14)
- == (24)
- === (8)
- >> (14)
-
WIN32OLE
_ METHOD (12) -
WIN32OLE
_ PARAM (12) - [] (24)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ method (12) -
add
_ response _ handler (24) -
add
_ to (12) -
alias
_ method (12) -
assert
_ respond _ to (1) - bind (12)
- call (24)
- caller (36)
-
class
_ exec (12) -
client
_ cert _ cb= (12) -
collect
_ method (12) -
count
_ nodes (12) - curry (22)
-
def
_ class (12) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ erb _ method (12) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ method (12) -
def
_ module (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - default (12)
-
define
_ method (48) -
define
_ singleton _ method (24) - dig (10)
- disasm (12)
- disassemble (12)
- dump (24)
- each (48)
- encode (36)
-
enum
_ for (24) - eql? (24)
- eval (24)
- execute (12)
- fail (36)
- form (48)
- handler= (12)
- header (12)
- input? (12)
-
install
_ alias _ method (12) -
instance
_ eval (24) -
instance
_ method (12) -
instance
_ methods (12) -
irb
_ original _ method _ name (12) -
json
_ create (12) -
last
_ match (24) - line (24)
- match (24)
-
method
_ added (18) -
method
_ defined? (12) -
method
_ missing (36) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (12)
- new (117)
-
num
_ methods= (12) - of (22)
-
ole
_ method (12) -
ole
_ method _ help (12) -
ole
_ show _ help (12) -
ole
_ type (12) -
ole
_ type _ detail (12) - optional? (12)
- out (12)
- output? (12)
- parameters (43)
- params (12)
- pp (12)
- ppx (12)
- print (24)
- printn (12)
- private (48)
-
private
_ class _ method (24) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - protected (48)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (24) -
psych
_ yaml _ as (4) - public (48)
-
public
_ class _ method (24) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ methods (24) - puke (1)
- puts (12)
- raise (36)
-
rake
_ extension (12) -
remove
_ method (12) -
renegotiation
_ cb= (12) -
request
_ method= (12) -
require
_ relative (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - retval? (12)
- send (24)
- seplist (12)
-
servername
_ cb= (12) - service (24)
-
session
_ get _ cb= (12) -
session
_ new _ cb= (12) -
session
_ remove _ cb= (12) -
set
_ visibility _ for (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
size
_ opt _ params (12) -
size
_ params (12) -
tmp
_ dh _ callback= (12) -
to
_ enum (24) -
to
_ json (108) -
to
_ s (12) -
undef
_ method (12) -
verify
_ callback= (24) -
yaml
_ as (4)
検索結果
先頭5件
-
Object
# method(name) -> Method (18254.0) -
オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。
...した
Method オブジェクトを返します。
@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。
//emlist[][ruby]{
me = -365.method(:abs)
p me #=> #<Method: Integer#......abs>
p me.call #=> 365
//}
@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method... -
Method
# parameters -> [object] (15140.0) -
Method オブジェクトの引数の情報を返します。
...Method オブジェクトの引数の情報を返します。
Method オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に応じた以下のような Symbol と、仮引数の名......t[例][ruby]{
m = Class.new{define_method(:m){|x, y=42, *other, k_x:, k_y: 42, **k_other, &b|}}.instance_method(:m)
m.parameters #=> x], [:opt, :y], [:rest, :other], [:keyreq, :k_x], [:key, :k_y], [:keyrest, :k_other], [:block, :b
File.method(:symlink).parameters #=> req
//}
@see Proc#parameters......st[例][ruby]{
m = Class.new{define_method(:m){|x, y=42, *other, k_x:, k_y: 42, **k_other, &b|}}.instance_method(:m)
m.parameters #=> x], [:opt, :y], [:rest, :other], [:keyreq, :k_x], [:key, :k_y], [:keyrest, :k_other], [:block, :b
File.method(:symlink).parameters #=> req
//}
@see Proc#parameters... -
WIN32OLE
_ METHOD # params -> [WIN32OLE _ PARAM] (9231.0) -
メソッドのパラメータ情報を取得します。
...タ情報を取得します。
このメソッドのパラメータをWIN32OLE_PARAMの配列として返します。配
列の最初の要素が最左端のパラメータに対応します。
@return WIN32OLE_PARAMの配列。無引数のメソッドであれば要素数0の配
列を返......します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
p method.params # => [Filename, FileFormat, Password, WriteResPassword,
ReadOnlyRecommended, CreateBackup, AccessMode,... -
ERB
:: DefMethod . # def _ erb _ method(methodname , erb) -> nil (9219.0) -
self に erb のスクリプトをメソッドとして定義します。
...として定義します。
メソッド名は methodname で指定します。
erb が文字列の時、そのファイルを読み込み ERB で変換したのち、メソッドとして定義します。
@param methodname メソッド名
@param erb ERBインスタンスもしくはERBソース......ファイル名
例:
require 'erb'
class Writer
extend ERB::DefMethod
def_erb_method('to_html', 'writer.erb')
...
end
...
puts writer.to_html... -
WIN32OLE
_ METHOD # size _ opt _ params -> Integer | nil (9118.0) -
オプションパラメータ数を取得します。
...パラメータ数を整数で返します。メソッドの詳細情報を取
得できない場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
puts method.size_opt_params # => 5... -
WIN32OLE
_ METHOD # size _ params -> Integer | nil (9118.0) -
パラメータ数を取得します。
...パラメータ数を整数で返します。メソッドの詳細情報を取得できない
場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Workbook')
method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
puts method.size_params # => 12... -
UnboundMethod
# parameters -> [object] (9112.0) -
UnboundMethod オブジェクトの引数の情報を返します。
...UnboundMethod オブジェクトの引数の情報を返します。
詳しくは Method#parameters を参照してください。
@see Proc#parameters, Method#parameters... -
Method
# <<(callable) -> Proc (9042.0) -
self と引数を合成した Proc を返します。
...ます。
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......uby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = method(:pp) << WordScanner << File.method(:read)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Proc#<<, Proc#>>... -
Method
# >>(callable) -> Proc (9042.0) -
self と引数を合成した Proc を返します。
...ます。
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......uby]{
class WordScanner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = File.method(:read) >> WordScanner >> method(:pp)
pipeline.call('testfile') # => ["Hello", "World", "Hello", "Ruby"]
//}
@see Proc#<<, Proc#>>... -
Method
# ==(other) -> bool (9018.0) -
自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...ッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
s = "bar"
a = s.method(:size)
b = s.method(:size)
p a == b #=> true
//}...