るりまサーチ

最速Rubyリファレンスマニュアル検索!
3393件ヒット [1-100件を表示] (0.134秒)

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

キーワード

検索結果

<< 1 2 3 ... > >>

Comparable#<(other) -> bool (21225.0)

比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。

... <=> をもとにオブジェクト同士を比較します。
<
=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。

@
param other 自身と比較したいオブジェクトを指定します。
@
raise ArgumentError <...
...=> が nil を返したときに発生します。

//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}...

Integer#<(other) -> bool (21225.0)

比較演算子。数値として小さいか判定します。

...比較演算子。数値として小さいか判定します。

@
param other 比較対象の数値
@
return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。

//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}...

Shell::Filter#<(src) -> self (21213.0)

srcをフィルタの入力とする。 srcが, 文字列ならばファイルを, IOオブジェクトであれ ばそれをそのまま入力とする。

...srcをフィルタの入力とする。 srcが, 文字列ならばファイルを, IOオブジェクトであれ
ばそれをそのまま入力とする。

@
param src フィルタの入力を, 文字列もしくは,IO オブジェクトで指定します。

使用例
r
equire 'shell'
Shell.def...
..._system_command("head")
sh = Shell.new
sh.transact {
(sh.head("-n 30") < "/etc/passwd") > "ugo.txt"
}...

Module#<(other) -> bool | nil (18249.0)

比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。

...her の子孫である場合、 true を返します。
self が other の先祖か同一のクラス/モジュールである場合、false を返します。

継承関係にないクラス同士の比較では
nil を返します。

@
param other 比較対象のモジュールやクラス

@
rai...
...se TypeError other がクラスやモジュールではない場合に発生します。

//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
class Qux
end
p Bar < Foo # => true
p Baz < Bar # => true
p Baz < Foo # => true
p Baz < Qux # => nil
p Baz > Q...
...ux # => nil

p Foo < Object.new # => in `<': compared with non class/module (TypeError)
//}...

Hash#<(other) -> bool (18231.0)

self が other のサブセットである場合に真を返します。

...が other のサブセットである場合に真を返します。

@
param other 自身と比較したい Hash オブジェクトを指定します。

//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 < h2 # => true
h2 < h1 # => false
h1 < h1 # => false
//}

@
see Hash#<=, Hash#...

絞り込み条件を変える

Float#<(other) -> bool (18219.0)

比較演算子。数値として小さいか判定します。

...数値として小さいか判定します。

@
param other 比較対象の数値
@
return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。

//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}...

Complex#<(other) -> bool (18217.0)

@undef

...
@
undef...

Fixnum#<(other) -> bool (18213.0)

比較演算子。数値として小さいか判定します。

...比較演算子。数値として小さいか判定します。

@
param other 比較対象の数値
@
return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。...

REXML::Parent#<<(object) -> () (12107.0)

object を子ノード列の最後に追加します。

...object を子ノード列の最後に追加します。

object の親ノードには self が設定されます。

@
param object 追加するノード...

StringScanner#<<(str) -> self (9231.0)

操作対象の文字列に対し str を破壊的に連結します。 マッチ記録は変更されません。

...し str を破壊的に連結します。
マッチ記録は変更されません。

selfを返します。

@
param str 操作対象の文字列に対し str を破壊的に連結します。

//emlist[例][ruby]{
r
equire 'strscan'

s = StringScanner.new('test') # => #<StringScanner 0/4 @ "test">
s...
...# => "est"
s << ' string' # => #<StringScanner 4/11 "test" @ " stri...">
s[0] # => "test"
s[1] # => "est"
s.scan(/\s+/) # => " "
s.scan(/\w+/) # => "string"
//}

この操作は StringScanner.new に渡...
...した文字列にも影響することがあります。

//emlist[例][ruby]{
r
equire 'strscan'

str = 'test'
s = StringScanner.new(str) # => #<StringScanner 0/4 @ "test">
s << ' string' # => #<StringScanner 0/11 @ "test ...">
str # => "test string"
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>