3307件ヒット
[101-200件を表示]
(0.084秒)
別のキーワード
ライブラリ
- ビルトイン (1640)
-
cgi
/ core (36) -
cgi
/ html (96) - delegate (48)
- erb (36)
- forwardable (96)
-
irb
/ cmd / help (12) -
irb
/ context (12) -
irb
/ extend-command (12) -
irb
/ input-method (180) -
irb
/ output-method (72) - json (156)
-
minitest
/ spec (1) -
minitest
/ unit (2) -
net
/ http (24) -
net
/ imap (24) - openssl (120)
- pp (12)
- psych (8)
- rake (12)
-
rdoc
/ code _ object (12) -
rdoc
/ context (96) -
rdoc
/ stats (24) -
rdoc
/ top _ level (12) - rubygems (12)
-
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (24) -
webrick
/ httpservlet / abstract (12) - win32ole (492)
クラス
- Array (10)
- BasicObject (72)
- CGI (24)
- Delegator (48)
- ERB (36)
- Enumerator (48)
-
Enumerator
:: Lazy (48) - Exception (12)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: FileInputMethod (24) -
IRB
:: InputMethod (36) -
IRB
:: OutputMethod (60) -
IRB
:: ReadlineInputMethod (60) -
IRB
:: StdioInputMethod (60) -
IRB
:: StdioOutputMethod (12) -
JSON
:: State (24) - Method (271)
-
MiniTest
:: Unit (1) - Module (500)
- NameError (24)
-
Net
:: HTTPGenericRequest (12) -
Net
:: IMAP (24) - NoMethodError (21)
- Object (217)
-
OpenSSL
:: Engine (12) -
OpenSSL
:: SSL :: SSLContext (96) -
OpenSSL
:: X509 :: Store (12) - PP (12)
- Proc (56)
-
RDoc
:: CodeObject (12) -
RDoc
:: Context (96) -
RDoc
:: Stats (24) -
RDoc
:: TopLevel (12) - Refinement (4)
- Regexp (24)
-
RubyVM
:: InstructionSequence (72) - String (60)
- Thread (12)
- TracePoint (31)
- UnboundMethod (179)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (24) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (132)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (216) -
WIN32OLE
_ PARAM (108) -
WIN32OLE
_ TYPE (24)
モジュール
-
CGI
:: HtmlExtension (96) -
CGI
:: QueryExtension (12) - Forwardable (48)
-
Gem
:: QuickLoader (12) -
IRB
:: ExtendCommandBundle (12) -
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 (36) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (12) - SingleForwardable (48)
キーワード
- << (14)
- == (24)
- === (8)
- >> (14)
- [] (36)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
absolute
_ path (12) -
add
_ method (12) -
add
_ response _ handler (24) -
add
_ to (12) -
alias
_ method (12) - args (12)
- arity (24)
-
assert
_ respond _ to (1) - backtrace (12)
-
base
_ label (12) - bind (12)
-
bind
_ call (12) - call (24)
-
callee
_ id (12) -
class
_ exec (12) -
client
_ cert _ cb= (12) - clone (24)
- curry (22)
-
def
_ class (12) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ method (12) -
def
_ module (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - default (12)
-
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - dig (10)
- dispid (12)
- each (48)
-
each
_ method (12) - encode (36)
- encoding (36)
-
enum
_ for (48) - eof? (24)
- eql? (24)
- event? (12)
-
event
_ interface (12) - execute (12)
-
file
_ name (12) -
find
_ local _ symbol (24) -
find
_ symbol (12) -
first
_ lineno (12) - form (48)
- generate (12)
- gets (48)
- handler= (12)
- hash (24)
- header (12)
- helpcontext (12)
- helpfile (12)
- helpstring (12)
-
import
_ methods (4) -
initialize
_ methods _ etc (12) - input? (12)
- inspect (24)
-
install
_ alias _ method (12) -
instance
_ eval (24) -
instance
_ method (12) -
instance
_ methods (12) - invkind (12)
-
invoke
_ kind (12) - io (12)
- label (12)
- lambda? (12)
- line (24)
- match (24)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ list (12) -
method
_ missing (48) -
method
_ removed (12) -
method
_ undefined (12) - methods (24)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (60)
-
num
_ methods (12) -
num
_ methods= (12) -
offset
_ vtbl (12) -
ole
_ activex _ initialize (12) -
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ method (12) -
ole
_ method _ help (12) -
ole
_ methods (24) -
ole
_ put _ methods (12) -
ole
_ type (12) -
ole
_ type _ detail (12) - optional? (12)
-
original
_ name (24) - out (12)
- output? (12)
- owner (24)
- parameters (43)
- params (12)
- path (12)
- pp (12)
- ppx (12)
- print (24)
- printn (12)
- private (48)
-
private
_ call? (9) -
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)
-
rake
_ extension (12) -
readable
_ atfer _ eof? (36) - receiver (12)
-
remove
_ method (12) -
remove
_ methods _ etc (12) -
renegotiation
_ cb= (12) -
request
_ method (36) -
request
_ method= (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
return
_ type (12) -
return
_ type _ detail (12) -
return
_ vtype (12) - retval? (12)
-
ruby2
_ keywords (18) - send (24)
- seplist (12)
-
servername
_ cb= (12) - service (24)
-
session
_ get _ cb= (12) -
session
_ new _ cb= (12) -
session
_ remove _ cb= (12) -
set
_ default (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) -
source
_ location (36) -
super
_ method (22) -
tmp
_ dh _ callback= (12) -
to
_ a (12) -
to
_ enum (48) -
to
_ json (108) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ proc (12) -
to
_ s (72) -
to
_ str (12) - unbind (12)
-
undef
_ method (12) -
verify
_ callback= (24) - visible? (12)
-
yaml
_ as (4)
検索結果
先頭5件
-
Method
# unbind -> UnboundMethod (9131.0) -
self のレシーバとの関連を取り除いた UnboundMethod オブ ジェクトを生成して返します。
...いた UnboundMethod オブ
ジェクトを生成して返します。
//emlist[例][ruby]{
class Foo
def foo
"foo"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
unbound_method = m.unbind # => #<UnboundMethod: Foo#foo>
unbound_method.bind(Foo.new) # => #<Method: Foo#foo>
//}... -
Method
# arity -> Integer (9061.0) -
メソッドが受け付ける引数の数を返します。
...c = C.new
p c.method(:u).arity #=> 0
p c.method(:v).arity #=> 1
p c.method(:w).arity #=> -1
p c.method(:x).arity #=> 2
p c.method(:y).arity #=> -3
p c.method(:z).arity #=> -3
s = "xyz"
s.method(:size).arity #=> 0
s.method(:replace).arity #=> 1
s.method(:squeeze).arit... -
Method
# parameters -> [object] (9041.0) -
Method オブジェクトの引数の情報を返します。
...Method オブジェクトの引数の情報を返します。
Method オブジェクトが引数を取らなければ空の配列を返します。引数を取る場合は、配列の配列を返し、
各配列の要素は引数の種類に応じた以下のような Symbol と、仮引数の名......数
//emlist[例][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#p... -
Method
# <<(callable) -> Proc (9037.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 (9037.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
# owner -> Class | Module (9025.0) -
このメソッドが定義されている class か module を返します。
...定義されている class か module を返します。
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.owner # => Foo
m = Foo.new.method(:puts) # => #<Method: Foo(Kernel)#puts>
m.owner # => Kernel
//}... -
Method
# source _ location -> [String , Integer] | nil (9019.0) -
ソースコードのファイル名と行番号を配列で返します。
...@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil
//}... -
Method
# ==(other) -> bool (9013.0) -
自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...ッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
s = "bar"
a = s.method(:size)
b = s.method(:size)
p a == b #=> true
//}... -
Method
# ===(*args) -> object (9013.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...せん。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}......せん。
@param args self に渡される引数。
@see UnboundMethod#bind_call
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "f......ありません。
@param args self に渡される引数。
@see UnboundMethod#bind_call
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called w... -
Method
# [](*args) -> object (9013.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...せん。
@param args self に渡される引数。
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}......せん。
@param args self に渡される引数。
@see UnboundMethod#bind_call
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "f......ありません。
@param args self に渡される引数。
@see UnboundMethod#bind_call
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called w...