るりまサーチ

最速Rubyリファレンスマニュアル検索!
3793件ヒット [1-100件を表示] (0.233秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:t[x] > クエリ:<[x]

別のキーワード

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

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

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

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

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

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

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

Shell::Filter#<(src) -> self (24306.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"
}...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@r...
...aise 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 >...
...Qux # => nil

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

絞り込み条件を変える

VALUE rb_time_timespec_new(const struct timespec *ts, int offset) (18424.0)

引数 ts、offset を元に Time オブジェクトを作成して返します。

...引数 ts、offset を元に Time オブジェクトを作成して返します。

@param ts timespec 構造体のポインタ

@param offset 協定世界時との時差(秒)。
-
86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は...
...地方時、INT_MAX-1 を指定した場合は UTC に
なります。

@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ます。...

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

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

...f が 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#<=, Has...

Module#protected_method_defined?(name) -> bool (18406.0)

インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。

...性が protected であるときに true を返します。
そうでなければ false を返します。

@param name Symbol か String を指定します。

@see Module#method_defined?, Module#public_method_defined?, Module#private_method_defined?

//emlist[例][ruby]{
module A
def method1()...
...nd
class B
protected
def method2() end
end
class C < B
include A
def method3() end
end

A.method_defined? :method1 #=> true
C.protected_method_defined? "method1" #=> false
C.protected_method_defined? "method2" #=> true
C.method_defined? "method2"...
...#=> true
//}...

Module#protected_method_defined?(name, inherit=true) -> bool (18406.0)

インスタンスメソッド name がモジュールに定義されており、 しかもその可視性が protected であるときに true を返します。 そうでなければ false を返します。

...ュールに定義されており、
しかもその可視性が protected であるときに true を返します。
そうでなければ false を返します。

@param name Symbol か String を指定します。
@param inherit 真を指定するとスーパークラスや include したモジ...
...ethod_defined?, Module#public_method_defined?, Module#private_method_defined?

//emlist[例][ruby]{
module A
def method1() end
end
class B
protected
def method2() end
end
class C < B
include A
def method3() end
end

A.method_defined? :method1 #=> true
C.protected_meth...
...od_defined? "method1" #=> false
C.protected_method_defined? "method2" #=> true
C.protected_method_defined? "method2", true #=> true
C.protected_method_defined? "method2", false #=> false
C.method_defined? "method2" #=> true
//}...

REXML::StreamListener#tag_start(name, attrs) -> () (18406.0)

開始タグをパースしたとき に呼び出されるコールバックメソッドです。

...です。


@param name タグ名が文字列で渡されます
@param attrs タグの属性が"属性名" => "属性値"という Hash で渡されます

=== 例
<
tag attr1="value1" attr2="value2">
という開始タグに対し、
name: "tag"
attrs: {"attr1" => "value1", "attr2" => "value2"...

絞り込み条件を変える

BigDecimal#<(other) -> bool (18400.0)

self が other より小さい場合に true を、そうでない場合に false を返しま す。

...self が other より小さい場合に true を、そうでない場合に false を返しま
す。...
<< 1 2 3 ... > >>