種類
- インスタンスメソッド (355)
- 定数 (54)
- 特異メソッド (23)
- 文書 (12)
- ライブラリ (12)
ライブラリ
- ビルトイン (79)
-
irb
/ context (12) - openssl (36)
- psych (11)
-
rdoc
/ context (24) -
rdoc
/ markdown (24) -
rexml
/ document (132) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (60) -
ripper
/ lexer (36) - sync (6)
クラス
-
ARGF
. class (10) - IO (12)
-
IRB
:: Context (12) -
OpenSSL
:: SSL :: SSLContext (36) -
RDoc
:: Context (24) -
RDoc
:: Markdown (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Comment (12) -
REXML
:: DocType (24) -
REXML
:: Document (12) -
REXML
:: Element (24) -
REXML
:: Instruction (12) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Parsers :: SAX2Parser (60) -
REXML
:: Text (12) -
REXML
:: XMLDecl (12) - Ripper (12)
-
Ripper
:: Lexer (24) - Symbol (57)
キーワード
-
DEFAULT
_ EXTENSIONS (12) -
DEFAULT
_ PARAMS (12) - EXTENSIONS (12)
- METHODS (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- [] (12)
- context (24)
-
event
_ type (12) -
find
_ local _ symbol (12) -
find
_ symbol (12) - lex (24)
- listen (60)
- load (11)
- match? (9)
- next (12)
-
node
_ type (108) - parse (12)
-
prompt
_ mode (12) -
read
_ nonblock (22) -
rexml
/ parsers / streamparser (12) -
session
_ cache _ stats (12) - slice (12)
- succ (12)
検索結果
先頭5件
-
Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (23022.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
...現の複雑な記号は除く)
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
===[a:ex] !
: !true
not 演算子。d:......正規表現の、量指定子(quantifiers)。直前の正規表現の 0 または 1 回の繰り返し。
===[a:num] #
: #コメント
d:spec/lexical#comment。# から行末までがコメントになります。
: xxx #=> 実行結果
: xxx # => 実行結果
慣用的に実行結果を示......、行頭。文字列の先頭や改行文字の直後の位置にマッチします。
===[a:colon] :
: :exit等の:のついた識別子
シンボルリテラル。d:spec/literal#symbol を参照。
: Net::HTTP
定数のスコープ演算子。d:spec/variables#const を参照。
: ::DateTi... -
Sync
_ m :: EX -> Symbol (18201.0) -
排他ロックされている状態を表す定数です。 オブジェクトの状態を更新する場合のように、 1つのスレッドがオブジェクトを独占的に使用したい場合に用います。 排他ロック中に他のスレッドはオブジェクトを共有/排他ロックできません。
排他ロックされている状態を表す定数です。
オブジェクトの状態を更新する場合のように、
1つのスレッドがオブジェクトを独占的に使用したい場合に用います。
排他ロック中に他のスレッドはオブジェクトを共有/排他ロックできません。 -
Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (9300.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.lex を使用してください。... -
RDoc
:: Context # find _ local _ symbol(symbol) (9200.0) -
Finds a method, constant, attribute, module or files named +symbol+ in this context
...Finds a method, constant, attribute, module or files named +symbol+ in
this context... -
RDoc
:: Context # find _ symbol(symbol , method=nil) (9200.0) -
Look up the given symbol. If method is non-nil, then we assume the symbol references a module that contains that method
...Look up the given symbol. If method is non-nil, then we assume
the symbol references a module that contains that method... -
REXML
:: DocType # context -> { Symbol => object } (9200.0) -
DTD が属する文書の「コンテキスト」を返します。
...DTD が属する文書の「コンテキスト」を返します。
具体的には親ノードである REXML::Document オブジェクトの
REXML::Element#context を返します。
コンテキストの具体的な内容については REXML::Element#context を
参照してください。... -
REXML
:: Element # context -> {Symbol => object} | nil (9200.0) -
要素の「コンテキスト」を Hash で返します。
...素の「コンテキスト」を Hash で返します。
コンテキストとは text node (REXML::Text) での特別な文字、特に空白について
の取り扱いについての設定です。
以下の Symbol をハッシュのキーとして使います。
: :respect_whitespace
空白......また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitespace
空白を無視して欲しい要素の名前の集合を文字列の配......ct_whitespace での指定を上書きします。
すべての要素で空白を無視して欲しい場合には
:all を指定します。
REXML::Element#whitespace も参照してください。
: :ignore_whitespace_nodes
空白のみからなるノードを無視して欲しい要素の... -
Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String] (9200.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.lex を使用してください。... -
Symbol
# next -> Symbol (9200.0) -
シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
...シンボルに対応する文字列の「次の」文字列に対応するシンボルを返します。
(self.to_s.next.intern と同じです。)
:a.next # => :b
:foo.next # => :fop
@see String#succ... -
Ripper
. lex(src , filename = & # 39;-& # 39; , lineno = 1) -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (6300.0) -
Ruby プログラム str をトークンに分割し、そのリストを返します。 ただし Ripper.tokenize と違い、トークンの種類と位置情報も付属します。
...p Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def", EXPR_FNAME],
# [[1, 3], :on_sp, " ", EXPR_FNAME],
# [[1, 4], :on_ident, "m", EXPR_ENDFN],
# [[1, 5], :on_lparen, "(", EXPR_BEG|EXPR_LABEL],
# [[1, 6], :on_ident, "a", EXPR_ARG],
# [[1, 7], :on_rparen, ")", EXPR_ENDFN]......,
# [[1, 8], :on_sp, " ", EXPR_BEG],
# [[1, 9], :on_kw, "nil", EXPR_END],
# [[1, 12], :on_sp, " ", EXPR_END],
# on_kw, "end", EXPR_END
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の配列の要素は 4 要素の配列 (概念的......の配列です。
: 種類 (Symbol)
トークンの種類が「:on_XXX」の形式のシンボルで渡されます。
: トークン (String)
トークン文字列です。
: ステート (Ripper::Lexer::State)
トークンの状態を表す Ripper::Lexer::State のインスタンス......@param lineno src の開始行番号を指定します。省略すると 1 になります。
//emlist[][ruby]{
require 'ripper'
pp Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def", FNAME],
# [[1, 3], :on_sp, " ", FNAME],
# [[1, 4], :on_ident, "m", ENDFN],
# [[1, 5], :o......NDFN],
# [[1, 8], :on_sp, " ", BEG],
# [[1, 9], :on_kw, "nil", END],
# [[1, 12], :on_sp, " ", END],
# on_kw, "end", END
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の配列の要素は 4 要素の配列 (概念的にはタプル)... -
Ripper
. lex(src , filename = & # 39;-& # 39; , lineno = 1 , raise _ errors: false) -> [[Integer , Integer] , Symbol , String , Ripper :: Lexer :: State] (6300.0) -
Ruby プログラム str をトークンに分割し、そのリストを返します。 ただし Ripper.tokenize と違い、トークンの種類と位置情報も付属します。
...SyntaxError raise_errors が true で、src に文法エラーがある場合に発生します。
//emlist[][ruby]{
require 'ripper'
pp Ripper.lex("def m(a) nil end")
# => [[[1, 0], :on_kw, "def", FNAME],
# [[1, 3], :on_sp, " ", FNAME],
# [[1, 4], :on_ident, "m", ENDFN],
# [[1, 5],......on_kw, "nil", END],
# [[1, 12], :on_sp, " ", END],
# on_kw, "end", END
Ripper.lex("def req(true) end", raise_errors: true)
# => SyntaxError (syntax error, unexpected `true', expecting ')')
//}
Ripper.lex は分割したトークンを詳しい情報とともに返します。
返り値の......の配列です。
: 種類 (Symbol)
トークンの種類が「:on_XXX」の形式のシンボルで渡されます。
: トークン (String)
トークン文字列です。
: ステート (Ripper::Lexer::State)
トークンの状態を表す Ripper::Lexer::State のインスタンス... -
RDoc
:: Markdown :: DEFAULT _ EXTENSIONS -> [Symbol] (6200.0) -
デフォルトで有効になっている拡張の一覧を Symbol の配列で返します。
...デフォルトで有効になっている拡張の一覧を Symbol の配列で返します。...