343件ヒット
[301-343件を表示]
(0.103秒)
クラス
- Array (36)
- BasicObject (12)
- CSV (24)
-
CSV
:: Table (60) - Method (12)
- Proc (7)
-
Rake
:: FileList (12) -
Resolv
:: DNS (12) - String (12)
- Thread (24)
- UnboundMethod (36)
モジュール
- Enumerable (60)
- GC (12)
-
Net
:: HTTPHeader (24)
キーワード
- != (12)
- << (7)
- arity (24)
-
basic
_ auth (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) - egrep (12)
-
garbage
_ collect (12) - inspect (24)
- priority (12)
- priority= (12)
-
proxy
_ basic _ auth (12) - read (12)
- readlines (12)
-
sort
_ by (24) - timeouts= (12)
-
to
_ s (12)
検索結果
先頭4件
-
BasicObject
# !=(other) -> bool (131.0) -
オブジェクトが other と等しくないことを判定します。
...オブジェクトが other と等しくないことを判定します。
デフォルトでは self == other を評価した後に結果を論理否定して返します。
このため、サブクラスで BasicObject#== を再定義しても != とは自動的に整合性が
とれるように......ram other 比較対象となるオブジェクト
@see BasicObject#==, BasicObject#!
//emlist[例][ruby]{
class NonequalityRecorder < BasicObject
def initialize
@count = 0
end
attr_reader :count
def !=(other)
@count += 1
super
end
end
recorder = NonequalityRecorder.new
recor......der != 1
puts 'hoge' if recorder != "str"
p recorder.count #=> 2
//}... -
UnboundMethod
# inspect -> String (119.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect... -
UnboundMethod
# to _ s -> String (119.0) -
self を読みやすい文字列として返します。
...self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect... -
CSV
:: Table # inspect -> String (113.0) -
モードとサイズを US-ASCII な文字列で返します。
...モードとサイズを US-ASCII な文字列で返します。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.inspect # => "#<CSV::Table mode:col_or_row row_count:2>"
//}...