クラス
- BasicObject (11)
-
Psych
:: Handler (11) -
Psych
:: Nodes :: Scalar (22) - Regexp (11)
-
RubyVM
:: InstructionSequence (11) - String (20)
- Struct (4)
モジュール
- Kernel (19)
キーワード
- +@ (9)
- -@ (9)
- Hash (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) - Regexp (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
- [] (1)
-
_ _ id _ _ (11) - ` (11)
-
compile
_ option (11) - dedup (2)
- lambda (4)
-
literal
_ append (11) -
literal
_ concat (11) -
literal
_ concat _ dstr (11) -
literal
_ concat _ list (11) -
literal
_ concat _ string (11) - new (14)
- proc (4)
-
ruby 1
. 8 . 4 feature (11) - scalar (11)
- uri (11)
- ~ (11)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- クラス/メソッドの定義 (11)
- プログラム・文・式 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
- 多言語化 (11)
- 正規表現 (11)
検索結果
先頭5件
-
Psych
:: Nodes :: Scalar :: LITERAL -> Integer (18117.0) -
literal style を表します。
...literal style を表します。
@see Psych::Nodes::Scalar.new,
Psych::Nodes::Scalar#style,
Psych::Handler#scalar... -
static NODE * literal
_ append(NODE *head , NODE *tail) (6100.0) -
-
static NODE * literal
_ concat(NODE *head , NODE *tail) (6100.0) -
-
static NODE * literal
_ concat _ dstr(NODE *head , NODE *tail) (6100.0) -
-
static NODE * literal
_ concat _ list(NODE *head , NODE *tail) (6100.0) -
-
static NODE * literal
_ concat _ string(NODE *head , NODE *tail , VALUE str) (6100.0) -
-
リテラル (3000.0)
-
リテラル * num * string * backslash * exp * char * command * here * regexp * array * hash * range * symbol * percent
リテラル
* num
* string
* backslash
* exp
* char
* command
* here
* regexp
* array
* hash
* range
* symbol
* percent
数字の1や文字列"hello world"のようにRubyのプログラムの中に直接
記述できる値の事をリテラルといいます。
===[a:num] 数値リテラル
: 123
: 0d123
整数
: -123
符号つき整数
: 123.45
浮動小数点数。
.1 など "." で始まる浮動小... -
Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (66.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
...す。
: /xxx/ !~ yyy
正規表現のメソッド =~ の否定。マッチが失敗したらtrueを返します。
===[a:q] ?
: ?a
d:spec/literal#string。長さ 1 の文字列。
: def xx?
この場合の「?」はメソッド名の一部分です。
慣用的に、真偽値を返す......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言語の要素ではあ......子としても使われる。
: %r{/etc/httpd/logs$} や %w[foo bar baz] ・・ %<文字><区切り文字><文字列><区切り文字>
d:spec/literal#percent。<区切り文字>には任意の非英数字を用いることができ、
<文字>によって式の意味が異なります。なお... -
Ruby用語集 (60.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
... ra wa
=== 記号・数字
: %記法
: % notation
「%」記号で始まる多種多様なリテラル記法の総称。
参照:d:spec/literal#percent
: 0 オリジン
: zero-based
番号が 0 から始まること。
例えば、
Array や Vector、Matrix などの要素の番......ペアを key: value の
形式で表す記法。ロケット演算子による記法と混在させることもできる。
参照:d:spec/literal#hash
→ロケット演算子
: コンテナー
: container
=コレクション
===[a:sa] さ
: 再定義
: redefinition
既に定義......ルリテラル、文字列配列リテラル、
シンボル配列リテラル、正規表現リテラルなどで使える。
参照:spec/literal
: 識別子
: identifier
プログラム中に書かれる変数・定数・メソッド・クラス・モジュールなどの名前。
:... -
ruby 1
. 8 . 4 feature (36.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...hibit empty symbol literal by interpolation.
# fixed: [ruby-talk:166529]
式展開で空のSymbolを作ることができたバグの修正。 ((<ruby-talk:166529>))
p :""
# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:1: empty symbol literal
# => rub.......4 (2005-12-16) [i686-linux]
-:1: empty symbol literal
p :"#{""}"
# => ruby 1.8.3 (2005-09-21) [i686-linux]
:
# => ruby 1.8.4 (2005-12-16) [i686-linux]
-:1: empty symbol literal
: Symbol [bug]
#Sat Oct 22 13:26:57 2005 Nobuyoshi Nak......error, unexpected tSTRING_CONTENT
alias :"foo" :"bar"
^
-:2: warning: unused literal ignored
# => ruby 1.9.0 (2005-12-10) [i686-linux]
"bar"
2) Symbol#inspect sometimes returns invalid symbol...