るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

クラス

モジュール

検索結果

<< 1 2 3 ... > >>

Module#>=(other) -> bool | nil (18142.0)

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

...dule#<

//emlist[例][ruby]{
module Foo; end
module Bar
include Foo
end
module Baz
prepend Foo
end

Bar.ancestors # => [Bar, Foo]
Foo >= Bar # => true
Bar >= Foo # => false

Baz.ancestors # => [Foo, Baz]
Foo >= Baz # => true
Baz >= Foo # => false

Foo >= Foo # => true
Foo >= Object # => nil
//}...

Comparable#>=(other) -> bool (18124.0)

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

...以外の整数を返した場合に、false を返します。

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

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

Hash#>=(other) -> bool (18124.0)

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

...セットか同じである場合に真を返します。

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

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

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

Integer#>=(other) -> bool (18124.0)

比較演算子。数値として等しいまたは大きいか判定します。

...other 比較対象の数値
@return self よりも other の方が小さい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。

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

Float#>=(other) -> bool (18112.0)

比較演算子。数値として等しいまたは大きいか判定します。

...ram other 比較対象の数値
@return self よりも other の方が小さい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。

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

絞り込み条件を変える

ruby 1.6 feature (5161.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...ruby 1.6 feature
ruby
version 1.6 は安定版です。この版での変更はバグ修正がメイン
になります。

((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。

== 1.6.8 (2002-12-24) ->...
...EWOULDBLOCK

=> ruby 1.6.7 (2002-03-01) [i586-linux]
Errno::EAGAIN
Errno::EWOULDBLOCK

=> ruby 1.6.8 (2002-12-24) [i586-linux]
Errno::EAGAIN
-:2: uninitialized constant EWOULDBLOCK at Errno (NameError)

=> ruby 1.6.8 (2003-02-13) [i...
...argument; make sure
ruby
1.6.7 (2002-03-01) [i586-linux]
"#"
0

=> -:3: warning: ambiguous first argument; make sure
ruby
1.6.7 (2002-07-30) [i586-linux]
"\\#"
nil

: 2002-04-29: rb_find_file()

$SAFE >= 4 で、絶対パ...

Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (3081.0)

Rubyで使われる記号の意味(正規表現の複雑な記号は除く) ex q num per and or  plus minus ast slash hat sq  period comma langl rangl eq tilde  dollar at under lbrarbra  lbra2rbra2 lbra3rbra3 dq colon ac  backslash semicolon

...Rubyで使われる記号の意味(正規表現の複雑な記号は除く)
ex q num per and or 
plus minus ast slash hat sq 
period comma langl rangl eq tilde 
dollar at under lbrarbra 
lbra2rbra2 lbra3rbra3 dq colon ac 
backslash semicol...
...#! ruby -Ks

shebang。d:spec/rubycmd#shebangを参照。

: # coding: utf-8

マジックコメント。d:spec/m17n#magic_comment を参照。

: "a is #{a}"

d:spec/literal#exp
//emlist{
a = 10
p "a is #{a}" #=> "a is 10"
//}

: Range#each

説明文の中でのみ使われます。Ruby...
...: class << obj

特異クラス定義。d:spec/def#singleton_classを参照。

===[a:rangl] >

: 3 > 5

「より大きい」比較演算子

: 3 >= 5

「より大きいか等しい」比較演算子

: 3 <=> 3

基本的な比較演算子。ほかの比較演算子はこの演算子を元に...

正規表現 (414.0)

正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references

...うかを判定し、
また含んでいるならばそれが文字列中のどの場所であるかを知ることができます。

//emlist[][ruby]{
/pat/
%r{pat}
//}

などの正規表現リテラルや Regexp.new などで正規表現
オブジェクトを得ることができます。


===[...
...文字列があります。
前者をメタ文字列(meta string)、後者をリテラル(文字列)(literal string)と呼びます。

//emlist[][ruby]{
/京都|大阪|神戸/
//}

という正規表現においては、「京都」「大阪」「神戸」がリテラルで、
2つの「|」がメ...
...を指定できます。
* \k<n+level> (n >= 1)
* \k<n-level> (n >= 1)
* \k'n+level' (n >= 1)
* \k'n-level' (n >= 1)
* \k<-n+level> (n >= 1)
* \k<-n-level> (n >= 1)
* \k'-n+level' (n >= 1)
* \k'-n-level' (n >= 1)
また、以下の記法で名前付きキ...

制御構造 (288.0)

制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END

...return
* BEGIN
* END

Ruby
では(Cなどとは異なり)制御構造は式であって、何らかの値を返すものが
あります(返さないものもあります。値を返さない式を代入式の右辺に置くと
syntax error になります)。

Ruby
はC言語やPerlから引...
...を始めとする制御構造をクラス設計者が定義する事が出来るものです.

=== 条件分岐
====[a:if] if

//emlist[例][ruby]{
if age >= 12 then
print "adult fee\n"
else
print "child fee\n"
end
gender = if foo.gender == "male" then "male" else "female" end
//}

文法:...
...。else 節がなくいずれの条件も成り立たなけれ
ば nil を返します。

Ruby
では false または nil だけが偽で、それ以外は 0 や空文
字列も含め全て真です。

Ruby
では if を繋げるのは elsif であり、else if
(C のように)でも elif(sh の...
<< 1 2 3 ... > >>