1146件ヒット
[1101-1146件を表示]
(0.042秒)
別のキーワード
クラス
-
ARGF
. class (108) - Array (24)
- BasicObject (72)
- Class (12)
- Hash (79)
- Integer (12)
- Method (117)
- Module (312)
- Object (120)
- OptionParser (144)
- Proc (14)
-
RubyVM
:: InstructionSequence (12) -
Thread
:: Backtrace :: Location (36) - TracePoint (12)
- UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (48)
キーワード
- ! (12)
- != (12)
- < (12)
- << (14)
- <=> (12)
- == (12)
- === (8)
- >> (14)
- [] (12)
-
_ dump (12) -
absolute
_ path (12) -
append
_ features (12) - autoload (12)
-
base
_ label (12) - bind (12)
- binmode (12)
- call (24)
-
class
_ eval (24) -
class
_ exec (12) - clone (12)
- close (12)
-
default
_ event _ sources (12) -
define
_ singleton _ method (24) -
defined
_ class (12) - display (12)
- dup (12)
-
each
_ char (24) -
each
_ codepoint (24) -
each
_ entry (24) - extend (12)
- getbyte (12)
- getc (12)
- include (12)
- include? (12)
- included (12)
- inherited (12)
-
initialize
_ copy (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
marshal
_ load (12) - merge (24)
-
module
_ eval (24) -
module
_ exec (12) - on (144)
- prepend (12)
-
prepend
_ features (12) - prepended (12)
-
pretty
_ print (12) -
private
_ class _ method (24) -
private
_ constant (12) -
public
_ class _ method (24) -
public
_ constant (12) -
remove
_ method (12) - replace (12)
-
singleton
_ class? (12) -
singleton
_ methods (12) - skip (12)
-
sort
_ by (24) -
super
_ method (11) -
to
_ a (24) -
to
_ ary (12) -
to
_ bn (12) -
to
_ h (19) -
to
_ proc (12) -
to
_ s (24) - unbind (12)
-
undef
_ method (12)
検索結果
先頭4件
-
BasicObject
# ==(other) -> bool (19.0) -
オブジェクトが other と等しければ真を、そうでない場合は偽を返します。
...同一性になっています。
@param other 比較対象となるオブジェクト
@return other が self と同値であれば真、そうでない場合は偽
//emlist[例][ruby]{
class Person < BasicObject
def initialize(name, age)
@name = name
@age = age
end
end
tanaka1 = Pers... -
Object
# marshal _ load(obj) -> object (19.0) -
Marshal.#load を制御するメソッドです。
...返り値が marshal_load の引数に利用されます。
marshal_load 時の self は、生成されたばかり(Class#allocate されたばかり) の状態です。
marshal_dump/marshal_load の仕組みは Ruby 1.8.0 から導入されました。
これから書くプログラムでは _... -
Object
# pretty _ print(pp) -> () (19.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...rint メソッドを定義しています。
@param pp PP オブジェクトです。
//emlist[][ruby]{
require 'pp'
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect,......retty_print メソッドを定義しています。
@param pp PP オブジェクトです。
//emlist[][ruby]{
class Array
def pretty_print(q)
q.group(1, '[', ']') {
q.seplist(self) {|v|
q.pp v
}
}
end
end
//}
@see Object#pretty_print_cycle, Object#inspect, PrettyP... -
Enumerable
# each _ entry -> Enumerator (14.0) -
ブロックを各要素に一度ずつ適用します。
...つ適用します。
一要素として複数の値が渡された場合はブロックには配列として渡されます。
//emlist[例][ruby]{
class Foo
include Enumerable
def each
yield 1
yield 1,2
end
end
Foo.new.each_entry{|o| print o, " -- "}
# => 1 -- [1, 2] --
//}
ブロ...