別のキーワード
種類
ライブラリ
- ビルトイン (1838)
-
cgi
/ core (33) -
cgi
/ html (88) - delegate (44)
- drb (22)
- erb (55)
- fileutils (22)
- forwardable (88)
-
irb
/ cmd / help (11) -
irb
/ context (22) -
irb
/ extend-command (22) -
irb
/ input-method (253) -
irb
/ output-method (88) - json (374)
- logger (1)
-
minitest
/ spec (1) -
minitest
/ unit (3) -
net
/ http (33) -
net
/ imap (22) - objspace (11)
- openssl (231)
- ostruct (11)
- pp (11)
- profiler (6)
- psych (8)
- rake (33)
- rdoc (11)
-
rdoc
/ any _ method (11) -
rdoc
/ code _ object (11) -
rdoc
/ context (88) -
rdoc
/ ghost _ method (11) -
rdoc
/ stats (22) -
rdoc
/ top _ level (11) - rss (11)
- rubygems (11)
-
shell
/ command-processor (12) -
shell
/ error (6) - singleton (11)
-
syslog
/ logger (11) - timeout (11)
- weakref (11)
-
webrick
/ cgi (11) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (22) -
webrick
/ httpservlet / abstract (11) -
webrick
/ httpstatus (451) - win32ole (517)
クラス
- Array (9)
- BasicObject (66)
- CGI (22)
-
DRb
:: DRbServer (11) - Delegator (44)
- ERB (33)
- Enumerator (58)
-
Enumerator
:: Lazy (44) - Exception (11)
-
IRB
:: Context (22) -
IRB
:: ExtendCommand :: Help (11) -
IRB
:: FileInputMethod (33) -
IRB
:: InputMethod (44) -
IRB
:: OutputMethod (55) -
IRB
:: ReadlineInputMethod (66) -
IRB
:: StdioInputMethod (66) -
IRB
:: StdioOutputMethod (11) -
JSON
:: State (22) - Method (247)
-
MiniTest
:: Unit (1) -
MiniTest
:: Unit :: TestCase (1) - Module (362)
- NameError (22)
-
Net
:: HTTPGenericRequest (11) -
Net
:: IMAP (22) - NoMethodError (36)
- Object (199)
-
OpenSSL
:: Engine (99) -
OpenSSL
:: SSL :: SSLContext (121) -
OpenSSL
:: X509 :: Store (11) - PP (11)
- Proc (50)
-
RDoc
:: CodeObject (11) -
RDoc
:: Context (88) -
RDoc
:: Stats (22) -
RDoc
:: TopLevel (11) -
Rake
:: FileList (22) - Refinement (3)
- Regexp (44)
-
RubyVM
:: InstructionSequence (99) -
Shell
:: CommandProcessor (12) - String (55)
-
Syslog
:: Logger (11) - Thread (11)
- TracePoint (39)
- UnboundMethod (163)
-
WEBrick
:: CGI (11) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (22) -
WEBrick
:: HTTPServlet :: AbstractServlet (11) - WIN32OLE (132)
-
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ METHOD (209) -
WIN32OLE
_ PARAM (110) -
WIN32OLE
_ TYPE (22)
モジュール
-
CGI
:: HtmlExtension (88) -
CGI
:: QueryExtension (11) -
ERB
:: DefMethod (11) - FileUtils (22)
- Forwardable (44)
-
Gem
:: QuickLoader (11) -
IRB
:: ExtendCommandBundle (22) -
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (189)
- Marshal (22)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (11) - ObjectSpace (11)
- RDoc (11)
-
RubyVM
:: AbstractSyntaxTree (8) - SingleForwardable (44)
-
WEBrick
:: HTTPStatus (440)
オブジェクト
- main (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (12)
- == (22)
- === (7)
- >> (12)
-
ARRAY
_ METHODS (11) - AnyMethod (11)
- Application (1)
- Array (22)
- BasicObject (11)
- CantApplyMethod (6)
-
DELEGATING
_ METHODS (11) - DRbObject (11)
- DefMethod (11)
- Error (11)
- Extend (22)
- FalseClass (22)
- FileInputMethod (11)
- Float (22)
- GhostMethod (11)
- HTTPMethodNotAllowed (11)
- Hash (22)
-
INSECURE
_ METHOD (11) - InputMethod (11)
- InstructionSequence (11)
- Integer (22)
- METHODS (22)
-
METHOD
_ ALL (11) -
METHOD
_ CIPHERS (11) -
METHOD
_ DH (11) -
METHOD
_ DIGESTS (11) -
METHOD
_ DSA (11) -
METHOD
_ MODIFIERS (11) -
METHOD
_ NONE (11) -
METHOD
_ RAND (11) -
METHOD
_ RSA (11) - MetaMethod (11)
- MethodNotAllowed (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NameError (11)
- NilClass (22)
- NoDelegateMethods (6)
- NoMethodError (11)
- Numeric (11)
- Object (22)
- OpenStruct (11)
- OutputMethod (11)
- Proc (11)
-
Profiler
_ _ (6) -
RC
_ ACCEPTED (11) -
RC
_ BAD _ GATEWAY (11) -
RC
_ BAD _ REQUEST (11) -
RC
_ CONFLICT (11) -
RC
_ CONTINUE (11) -
RC
_ CREATED (11) -
RC
_ EXPECTATION _ FAILED (11) -
RC
_ FORBIDDEN (11) -
RC
_ FOUND (11) -
RC
_ GATEWAY _ TIMEOUT (11) -
RC
_ GONE (11) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (11) -
RC
_ INTERNAL _ SERVER _ ERROR (11) -
RC
_ LENGTH _ REQUIRED (11) -
RC
_ METHOD _ NOT _ ALLOWED (11) -
RC
_ MOVED _ PERMANENTLY (11) -
RC
_ MULTIPLE _ CHOICES (11) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (11) -
RC
_ NOT _ ACCEPTABLE (11) -
RC
_ NOT _ FOUND (11) -
RC
_ NOT _ IMPLEMENTED (11) -
RC
_ NOT _ MODIFIED (11) -
RC
_ NO _ CONTENT (11) -
RC
_ OK (11) -
RC
_ PARTIAL _ CONTENT (11) -
RC
_ PAYMENT _ REQUIRED (11) -
RC
_ PRECONDITION _ FAILED (11) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (11) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (11) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (11) -
RC
_ REQUEST _ TIMEOUT (11) -
RC
_ REQUEST _ URI _ TOO _ LARGE (11) -
RC
_ RESET _ CONTENT (11) -
RC
_ SEE _ OTHER (11) -
RC
_ SERVICE _ UNAVAILABLE (11) -
RC
_ SWITCHING _ PROTOCOLS (11) -
RC
_ TEMPORARY _ REDIRECT (11) -
RC
_ UNAUTHORIZED (11) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (11) -
RC
_ USE _ PROXY (11) -
RUBY
_ METHOD _ FUNC (11) - ReFe (11)
- ReadlineInputMethod (11)
- Ruby プログラムの実行 (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- Singleton (11)
- StdioInputMethod (11)
- StdioOutputMethod (11)
- String (22)
- TrueClass (22)
- UnboundMethod (11)
- UnknownConversionMethodError (11)
-
WIN32OLE
_ METHOD (11) -
WIN32OLE
_ PARAM (11) -
WIN32OLE
_ VARIABLE (11) - WeakRef (11)
- [] (33)
-
_ _ callee _ _ (11) -
_ _ method _ _ (11) -
_ getproperty (11) -
_ invoke (11) -
_ setproperty (11) -
absolute
_ path (11) -
add
_ method (11) -
add
_ response _ handler (22) -
add
_ to (11) -
alias
_ method (11) - args (11)
- arity (22)
-
assert
_ respond _ to (1) - backtrace (11)
-
base
_ label (11) - bind (11)
-
bind
_ call (10) -
bm
_ mark (11) - bmcall (11)
- call (22)
-
callee
_ id (11) - caller (33)
- cgi (11)
-
cgi
/ session (11) -
class
_ exec (11) -
client
_ cert _ cb= (11) - clone (22)
-
clone
_ method (11) -
collect
_ method (11) -
convert
_ type (11) -
count
_ nodes (11) - coverage (7)
- curry (20)
- debug (11)
-
def
_ class (11) -
def
_ delegator (22) -
def
_ delegators (22) -
def
_ erb _ method (11) -
def
_ instance _ delegator (11) -
def
_ instance _ delegators (11) -
def
_ method (11) -
def
_ module (11) -
def
_ single _ delegator (11) -
def
_ single _ delegators (11) - default (11)
-
default
_ event _ sources (11) -
define
_ method (44) -
define
_ singleton _ method (22) -
did
_ you _ mean (11) - dig (9)
- disasm (11)
- disassemble (11)
- dispid (11)
- dump (22)
- each (44)
-
each
_ method (11) - encode (33)
- encoding (33)
-
enum
_ for (44) - eof? (22)
- eql? (22)
- eval (22)
- event? (11)
-
event
_ interface (11) - execute (11)
- fail (33)
-
file
_ name (11) -
find
_ local _ symbol (22) -
find
_ symbol (11) -
first
_ lineno (11) - form (44)
- generate (11)
- gets (44)
- handler= (11)
- hash (22)
- header (11)
- helpcontext (11)
- helpfile (11)
- helpstring (11)
-
import
_ methods (3) -
initialize
_ methods _ etc (11) - input? (11)
-
ins
_ methods _ i (11) -
ins
_ methods _ priv _ i (11) -
ins
_ methods _ prot _ i (11) - inspect (22)
-
install
_ alias _ method (11) -
instance
_ eval (22) -
instance
_ method (11) -
instance
_ methods (11) - invkind (11)
-
invoke
_ kind (11) - io (11)
- irb (11)
-
irb
/ completion (11) -
irb
/ input-method (11) -
irb
/ output-method (11) -
irb
_ original _ method _ name (11) -
json
_ create (11) - label (11)
- lambda (17)
- lambda? (11)
-
last
_ match (22) - line (22)
- main (11)
-
make
_ methods (11) - match (22)
- method (33)
-
method
_ added (17) -
method
_ arity (11) -
method
_ call (11) -
method
_ clone (11) -
method
_ defined? (11) -
method
_ eq (11) -
method
_ id (11) -
method
_ inspect (11) -
method
_ list (22) -
method
_ missing (44) -
method
_ proc (11) -
method
_ removed (11) -
method
_ unbind (11) -
method
_ undefined (11) - methods (22)
-
module
_ exec (11) -
module
_ function (19) -
multipart
_ form (44) -
must
_ respond _ to (1) - name (55)
- new (141)
-
num
_ methods (11) -
num
_ methods= (11) - of (19)
-
offset
_ vtbl (11) -
ole
_ activex _ initialize (11) -
ole
_ func _ methods (11) -
ole
_ get _ methods (11) -
ole
_ method (11) -
ole
_ method _ help (11) -
ole
_ methods (22) -
ole
_ put _ methods (11) -
ole
_ show _ help (11) -
ole
_ type (11) -
ole
_ type _ detail (11) - optional? (11)
-
original
_ name (22) - out (11)
- output? (11)
- owner (22)
- parameters (39)
- params (11)
- path (11)
- pp (11)
- ppx (11)
- print (22)
- printn (11)
- private (23)
-
private
_ call? (8) -
private
_ class _ method (15) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) - proc (18)
- protected (23)
-
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (22) -
psych
_ yaml _ as (4) - public (23)
-
public
_ class _ method (15) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ method _ defined? (11) -
public
_ methods (22) - puke (1)
- puts (11)
- raise (33)
-
rake
_ extension (11) -
rb
_ add _ method (11) -
rb
_ call (11) -
rb
_ catch (11) -
rb
_ check _ convert _ type (11) -
rb
_ class _ instance _ methods (11) -
rb
_ class _ private _ instance _ methods (11) -
rb
_ class _ protected _ instance _ methods (11) -
rb
_ convert _ type (11) -
rb
_ define _ global _ function (11) -
rb
_ define _ method (11) -
rb
_ define _ method _ id (11) -
rb
_ define _ module _ function (11) -
rb
_ define _ private _ method (11) -
rb
_ define _ protected _ method (11) -
rb
_ define _ singleton _ method (11) -
rb
_ export _ method (11) -
rb
_ get _ method _ body (11) -
rb
_ method _ boundp (11) -
rb
_ mod _ alias _ method (11) -
rb
_ mod _ define _ method (11) -
rb
_ mod _ method (11) -
rb
_ mod _ method _ defined (11) -
rb
_ mod _ private _ method (11) -
rb
_ mod _ public _ method (11) -
rb
_ mod _ remove _ method (11) -
rb
_ mod _ undef _ method (11) -
rb
_ obj _ method (11) -
rb
_ obj _ methods (11) -
rb
_ obj _ private _ methods (11) -
rb
_ obj _ protected _ methods (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ remove _ method (11) -
rb
_ scan _ args (11) -
rb
_ to _ integer (11) -
rb
_ undef _ method (11) - rdoc (11)
-
rdoc
/ any _ method (11) -
rdoc
/ ghost _ method (11) -
rdoc
/ parser / c (11) -
rdoc
/ parser / ruby (11) -
readable
_ atfer _ eof? (33) - receiver (11)
-
remove
_ method (22) -
remove
_ methods _ etc (11) -
renegotiation
_ cb= (11) -
request
_ method (33) -
request
_ method= (11) -
require
_ relative (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) -
return
_ type (11) -
return
_ type _ detail (11) -
return
_ vtype (11) - retval? (11)
-
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby2
_ keywords (10) -
search
_ method (11) - send (22)
- seplist (11)
-
servername
_ cb= (11) - service (22)
-
session
_ get _ cb= (11) -
session
_ new _ cb= (11) -
session
_ remove _ cb= (11) -
set
_ default (11) -
set
_ method _ visibility (11) -
set
_ visibility _ for (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) -
size
_ opt _ params (11) -
size
_ params (11) -
source
_ location (33) -
super
_ method (20) -
test
_ methods (1) -
tmp
_ dh _ callback= (11) -
to
_ a (11) -
to
_ enum (44) -
to
_ json (99) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ proc (11) -
to
_ s (66) -
to
_ str (11) - umcall (11)
-
umethod
_ bind (11) -
umethod
_ call (11) -
umethod
_ proc (11) -
umethod
_ unbind (11) - unbind (11)
-
undef
_ method (11) -
verify
_ callback= (22) - visible? (11)
-
webrick
/ cgi (11) - xmlrpc (3)
-
yaml
_ as (4) - クラス/メソッドの定義 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
- 制御構造 (11)
- 手続きオブジェクトの挙動の詳細 (11)
検索結果
先頭5件
-
Method
# owner -> Class | Module (21024.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 (21018.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 (21012.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 (21012.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 (21012.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
# call(*args) -> object (21012.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
# call(*args) { . . . } -> object (21012.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
# curry -> Proc (21012.0) -
self を元にカリー化した Proc を返します。
...。
//emlist[例][ruby]{
def foo(a,b,c)
[a, b, c]
end
proc = self.method(:foo).curry
proc2 = proc.call(1, 2) #=> #<Proc>
proc2.call(3) #=> [1,2,3]
def vararg(*args)
args
end
proc = self.method(:vararg).curry(4)
proc2 = proc.call(:x) #=> #<Proc>
proc3 = proc2... -
Method
# curry(arity) -> Proc (21012.0) -
self を元にカリー化した Proc を返します。
...。
//emlist[例][ruby]{
def foo(a,b,c)
[a, b, c]
end
proc = self.method(:foo).curry
proc2 = proc.call(1, 2) #=> #<Proc>
proc2.call(3) #=> [1,2,3]
def vararg(*args)
args
end
proc = self.method(:vararg).curry(4)
proc2 = proc.call(:x) #=> #<Proc>
proc3 = proc2... -
Method
# eql?(other) -> bool (21012.0) -
自身と other が同じインスタンスの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
...ッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
s = "bar"
a = s.method(:size)
b = s.method(:size)
p a == b #=> true
//}...