種類
ライブラリ
- ビルトイン (762)
-
cgi
/ html (576) - cmath (120)
-
json
/ add / complex (24) - matrix (24)
-
rdoc
/ parser / ruby (12) -
ripper
/ lexer (60) -
rubygems
/ exceptions (24) - socket (24)
クラス
モジュール
-
CGI
:: HtmlExtension (564) - CMath (120)
- Kernel (24)
-
Socket
:: Constants (12)
キーワード
- * (12)
- ** (12)
- + (12)
- - (12)
- -@ (12)
-
/ (12) - < (12)
- <= (12)
- <=> (6)
- == (12)
- > (12)
- >= (12)
- Complex (36)
- DependencyRemovalException (12)
- EndOfYAMLException (12)
- HtmlExtension (12)
- I (12)
-
IFF
_ SIMPLEX (24) - Lexer (12)
- RubyLex (12)
- SignalException (12)
- a (24)
- abs (12)
- abs2 (12)
- acos (6)
- acosh (6)
- angle (12)
- arg (12)
- asin (6)
- asinh (6)
- atan (6)
- atan2 (6)
- atanh (6)
- base (12)
- between? (12)
- blockquote (24)
- caption (24)
- cbrt (6)
- checkbox (24)
-
checkbox
_ group (24) - clamp (12)
- coerce (12)
- conj (12)
- conjugate (12)
- cos (6)
- cosh (6)
- denominator (12)
- exp (6)
- fdiv (30)
-
file
_ field (24) - finite? (9)
- form (48)
-
here
_ document (12) -
heredoc
_ identifier (12) -
heredoc
_ restore (12) - hidden (24)
- html (24)
- i (12)
- imag (12)
- imaginary (12)
- img (24)
- infinite? (9)
- inspect (12)
-
irb
/ ruby-lex (12) -
irb
/ slex (6) -
json
/ add / complex (12) -
json
_ create (12) -
lex
_ get _ str (12) -
lex
_ getline (12) - log (12)
- log10 (6)
- log2 (6)
- magnitude (12)
-
marshal
_ dump (12) -
multipart
_ form (48) - new (36)
- numerator (12)
- parse (12)
-
parse
_ string (12) -
password
_ field (24) - phase (12)
- polar (24)
- quo (24)
-
radio
_ group (24) - rationalize (24)
-
rb
_ reserved _ word (12) - real (12)
- real? (12)
- rect (24)
- rectangular (24)
- reset (24)
-
ripper
/ lexer (12) -
scrolling
_ list (24) - signm (12)
- signo (12)
- sin (6)
- sinh (6)
- sqrt (6)
- submit (24)
- tan (6)
- tanh (6)
-
text
_ field (24) - textarea (24)
-
to
_ c (48) -
to
_ f (12) -
to
_ i (12) -
to
_ json (12) -
to
_ r (12) -
to
_ s (12) - tokenize (12)
- tr (12)
- trace (12)
- yylex (12)
- 字句構造 (12)
検索結果
先頭5件
-
Numeric
# to _ c -> Complex (100.0) -
自身を複素数 (Complex) に変換します。Complex(self, 0) を返します。
...自身を複素数 (Complex) に変換します。Complex(self, 0) を返します。
//emlist[例][ruby]{
1.to_c # => (1+0i)
-1.to_c # => (-1+0i)
1.0.to_c # => (1.0+0i)
Rational(1, 2).to_c # => ((1/2)+0i)
//}
Numeric のサブクラスは、このメソッド... -
String
# to _ c -> Complex (100.0) -
自身を複素数 (Complex) に変換した結果を返します。
...自身を複素数 (Complex) に変換した結果を返します。
以下の形式を解析できます。i、j は大文字、小文字のどちらでも解析できます。
* 実部+虚部i
* 実部+虚部j
* 絶対値@偏角
それぞれの数値は以下のいずれかの形式で指... -
static int here
_ document(NODE *here) (16.0) -
lex_strterm 形式の term に従ってヒアドキュメントを 終端行まで読み込む。
...
lex_strterm 形式の term に従ってヒアドキュメントを
終端行まで読み込む。... -
static int heredoc
_ identifier(void) (16.0) -
ヒアドキュメントの「<<」を既に読みこんだものと仮定して 開始記号を読みこみ、lex_strterm をセットします。 返り値は、読み込みに成功したときはシンボル、解析できないときは 0 です。
...ヒアドキュメントの「<<」を既に読みこんだものと仮定して
開始記号を読みこみ、lex_strterm をセットします。
返り値は、読み込みに成功したときはシンボル、解析できないときは 0 です。... -
static int parse
_ string(NODE *quote) (16.0) -
lex_strterm 形式のノード quote の指示に従い、 文字列の終端または埋め込み式の始まりまで読みこみます。
...
lex_strterm 形式のノード quote の指示に従い、
文字列の終端または埋め込み式の始まりまで読みこみます。... -
static void heredoc
_ restore(NODE *here) (16.0) -
ヒアドキュメントの本体の読み込みに失敗したとき、開始記号 のある行を復帰します。here は lex_strterm です。
...ヒアドキュメントの本体の読み込みに失敗したとき、開始記号
のある行を復帰します。here は lex_strterm です。... -
static struct kwtable * rb
_ reserved _ word(const char *str , unsigned int len) (12.0) -
長さ len の文字列 str が予約語であれば そのフラグテーブルを返します。str が予約語でなければ NULL を返します。
.../* 0: 非修飾型シンボル
1: 修飾型シンボル (kIF_MOD など) があれば
それを格納する。なければ id[0] と同じ */
enum lex_state state; /* 遷移すべきlex_state */
};...