るりまサーチ

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

別のキーワード

  1. ripper/lexer lex
  2. lexer lex
  3. ripper lex
  4. irb irb/ruby-lex

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Ripper::Lexer#lex -> [[Integer, Integer], Symbol, String, Ripper::Lexer::State] (21208.0)

自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。

...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。

ライブラリ内部で使用します。 Ripper.lex を使用してください。...

Ripper::Lexer#lex -> [[Integer, Integer], Symbol, String] (21108.0)

自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。

...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。

ライブラリ内部で使用します。 Ripper.lex を使用してください。...

Complex#coerce(other) -> [Complex, Complex] (3201.0)

other を Complex に変換して [変換後の other, self] の配列を返します。

...other を Complex に変換して [変換後の other, self] の配列を返します。

@raise TypeError 変換できないオブジェクトを指定した場合に発生します。

//emlist[例][ruby]{
Complex(1).coerce(2) # => [(2+0i), (1+0i)]
//}...

Ripper::Lexer#parse -> [[Integer, Integer], Symbol, String, Ripper::Lexer::State] (3117.0)

自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た だし Ripper::Lexer#lex と違い、結果をソートしません。

...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た
だし Ripper::Lexer#lex と違い、結果をソートしません。

ライブラリ内部で使用します。...

Complex#*(other) -> Complex (3101.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)
//}...

絞り込み条件を変える

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

冪(べき)乗を計算します。

...冪(べき)乗を計算します。

@param other 自身を other 乗する数

//emlist[例][ruby]{
Complex('i') ** 2 # => (-1+0i)
//}...

Complex#+(other) -> Complex (3101.0)

和を計算します。

...和を計算します。

@param other 自身に足す数

//emlist[例][ruby]{
Complex(1, 2) + Complex(2, 3) # => (3+5i)
//}...

Complex#-(other) -> Complex (3101.0)

差を計算します。

...差を計算します。

@param other 自身から引く数

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

Complex#-@ -> Complex (3101.0)

自身の符号を反転させたものを返します。

...自身の符号を反転させたものを返します。

//emlist[例][ruby]{
-Complex(1) # => (-1+0i)
-Complex(-1, 1) # => (1-1i)
//}...

Complex#/(other) -> Complex (3101.0)

商を計算します。

...商を計算します。

@param other 自身を割る数

//emlist[例][ruby]{
Complex(10.0) / 3 # => (3.3333333333333335+(0/1)*i)
Complex(10) / 3 # => ((10/3)+(0/1)*i)
//}

@see Numeric#quo...

絞り込み条件を変える

Complex#conj -> Complex (3101.0)

自身の共役複素数を返します。

...自身の共役複素数を返します。

//emlist[例][ruby]{
Complex(1, 2).conj # => (1-2i)
//}...
<< 1 2 3 ... > >>