318件ヒット
[301-318件を表示]
(0.057秒)
別のキーワード
キーワード
- !~ (12)
- <=> (12)
-
_ dump (12) - class (12)
-
define
_ singleton _ method (24) - display (12)
-
enum
_ for (24) - equal? (12)
- extend (12)
- freeze (12)
- hash (12)
-
initialize
_ copy (12) - itself (12)
-
marshal
_ load (12) -
pretty
_ print (12) -
singleton
_ methods (12) - taint (9)
- tap (12)
- then (14)
-
to
_ enum (24) - trust (9)
- untaint (9)
- untrust (9)
-
yield
_ self (16)
検索結果
-
Object
# !~(other) -> bool (3020.0) -
自身が other とマッチしない事を判定します。
...身が other とマッチしない事を判定します。
self#=~(obj) を反転した結果と同じ結果を返します。
@param other 判定するオブジェクトを指定します。
//emlist[例][ruby]{
obj = 'regexp'
p (obj !~ /re/) # => false
obj = nil
p (obj !~ /re/) # => true
//}... -
Object
# pretty _ print(pp) -> () (3020.0) -
PP.pp や Kernel.#pp がオブジェクトの内容を出力するときに 呼ばれるメソッドです。PP オブジェクト pp を引数として呼ばれます。
...@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, PrettyPrint#text, PrettyPrint#group, PrettyP......す。
@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, PrettyPrint#text, PrettyPrint#group, PrettyPrint#bre...