るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

irb (26404.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...irb は Interactive Ruby の略です。
i
rb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

Ruby
さえ知っていれば irb を使うのは簡単です。
i
rb コマンドを実行すると、以下のようなプロン...
...

$ irb
i
rb(main):001:0>

あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。

i
rb(main):001:0> 1+2
3
i
rb(main):002:0> class Foo
i
rb(main):003:1> def foo
i
rb(main):004:2> print 1
i
rb(main):005:2> end
i
rb(main):006:1>...
...として扱わない

=== irb のカスタマイズ

i
rb コマンドは起動時に以下のパスを上から順番に探索し、
最初に見つかったファイルを読み込みます。

*
$IRBRC (もし環境変数 IRBRC が設定されていれば)
*
$HOME/.irbrc (もし環境変数 H...
...== irb のカスタマイズ

i
rb コマンドは起動時に以下のパスを上から順番に探索し、
最初に見つかったファイルを読み込みます。

*
$IRBRC (もし環境変数 IRBRC が設定されていれば)
*
$XDG_CONFIG_HOME/irb/irbrc (もし環境変数 XDG_CONFIG_...

オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (26343.0)

オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * version 3.1 対応リファレンス * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/

...オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意

組込みクラスのリ...
...

*
spec/intro
*
spec/commands
*
spec/rubycmd
*
spec/envvars

==== Ruby 言語仕様

Ruby
でのオブジェクト:
*
spec/object
*
spec/class

プロセスの実行:
*
spec/eval
*
spec/terminate
*
spec/thread
*
spec/safelevel

Ruby
の文法:
*
spec/lexical
*
spec/program
*
s...
...riables
*
spec/literal
*
spec/operator
*
spec/control
*
spec/call
*
spec/def
*
spec/pattern_matching

その他:
*
spec/m17n
*
spec/regexp
*
spec/lambda_proc

==== 組み込みライブラリ
*
_builtin

==== 標準添付ライブラリ
*
/

==== C API
*
/

==== その他
*
...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 2.3 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 2.4 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 2.5 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 2.6 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 2.7 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 3.0 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 3.1 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 3.2 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...
...

*
spec/intro
*
spec/commands
*
spec/rubycmd
*
spec/envvars

==== Ruby 言語仕様

Ruby
でのオブジェクト:
*
spec/object
*
spec/class

プロセスの実行:
*
spec/eval
*
spec/terminate
*
spec/thread

Ruby
の文法:
*
spec/lexical
*
spec/program
*
spec/variables
*
s...
.../literal
*
spec/operator
*
spec/control
*
spec/call
*
spec/def
*
spec/pattern_matching

その他:
*
spec/m17n
*
spec/regexp
*
spec/lambda_proc

==== 組み込みライブラリ
*
_builtin

==== 標準添付ライブラリ
*
/

==== C API
*
/

==== その他
*
news/index
*
...
...ト指向スクリプト言語 Ruby リファレンスマニュアル
*
Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
*
version 3.3 対応リファレンス
*
原著:まつもとゆきひろ
*
最新版URL: https://www.ruby-lang.org/ja/documentation/

=== 使用上の注意...

FileUtils#ruby(*args) {|result, status| ... } (24229.0)

与えられた引数で Ruby インタプリタを実行します。

...与えられた引数で Ruby インタプリタを実行します。

@param args Ruby インタプリタに与える引数を指定します。

例:
ruby
%{-pe '$_.upcase!' <README}

@see Kernel.#sh...

Rational#*(other) -> Rational | Float (21230.0)

積を計算します。

...

@param other 自身に掛ける数

other に Float を指定した場合は、計算結果を Float で返しま
す。

//emlist[例][ruby]{
r = Rational(3, 4)
r * 2 # => (3/2)
r * 4 # => (3/1)
r * 0.5 # => 0.375
r * Rational(1, 2) # => (3/8)
//}...

String#*(times) -> String (21224.0)

文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。

...容を times 回だけ繰り返した新しい文字列を作成して返します。

@param times 整数
@return self を times 回繰り返した新しい文字列

@raise ArgumentError 引数に負数を指定したときに発生します。

//emlist[例][ruby]{
p "str" * 3 # => "...
...strstrstr"

str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""
p str # => "abc" (変化なし)
//}...

絞り込み条件を変える

Integer#*(other) -> Numeric (21212.0)

算術演算子。積を計算します。

...算術演算子。積を計算します。

@param other 二項演算の右側の引数(対象)
@return 計算結果

//emlist[][ruby]{
2 * 3 # => 6
//}...

Array#*(sep) -> String (18214.0)

指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。

...ます。Array#join(sep) と同じ動作をします。

@param sep 文字列を指定します。
文字列以外のオブジェクトを指定した場合は to_str メソッドによ
る暗黙の型変換を試みます。

//emlist[例][ruby]{
p [1,2,3] * ","
# => "1,2,3"
/...
.../}

@see Array#join...

Array#*(times) -> Array (18214.0)

配列の内容を times 回 繰り返した新しい配列を作成して返します。 値はコピーされないことに注意してください。

...内容を times 回 繰り返した新しい配列を作成して返します。
値はコピーされないことに注意してください。

@param times 繰り返したい回数を整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソ...
...ます。

@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。

@raise ArgumentError 引数に負の数を指定した場合に発生します。

//emlist[例][ruby]{
p [1, 2, 3] * 3 #=> [1, 2, 3...

Vector#*(m) -> Matrix (18213.0)

自分自身を列ベクトル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。

...トル(行列)に変換して (実際には Matrix.column_vector(self) を適用) から、行列 m を右から乗じた行列 (Matrix クラス) を返します。

@param m 右から乗算を行う行列
@raise ExceptionForMatrix::ErrDimensionMismatch 次元が合わない場合に発生します...
...=== 注意

引数の行列 m は自分自身を列ベクトルとした場合に乗算が定義できる行列である必要があります。

//emlist[例][ruby]{
require 'matrix'

v = Vector[1, 2]
a = [4, 5, 6]
m = Matrix[a]

p v * m # => Matrix[[4, 5, 6], [8, 10, 12]]
//}...

Complex#*(other) -> Complex (18142.0)

積を計算します。

...積を計算します。

@param other 自身に掛ける数

//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>