種類
- インスタンスメソッド (78)
- 文書 (36)
- 定数 (24)
- マクロ (24)
- 関数 (12)
ライブラリ
- ビルトイン (66)
- rake (12)
-
rdoc
/ markup (12)
クラス
- Array (24)
- Module (24)
- Proc (6)
-
RDoc
:: Markup (12) -
RDoc
:: Options (12) -
Rake
:: FileList (12) - Thread (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
BUILTIN
_ TYPE (12) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (5) -
SPECIAL
_ CONST _ P (12) -
SPECIAL
_ RETURN (12) -
add
_ special (12) - bsearch (24)
- refine (12)
-
ruby2
_ keywords (18) -
special
_ local _ set (12) -
thread
_ variable _ get (12) - クラス/メソッドの定義 (12)
検索結果
先頭5件
-
RDoc
:: Options :: SPECIAL -> [String] (24201.0) -
--write-options を指定した際に .rdoc_options ファイルに保存されないオプ ションの一覧を返します。
...--write-options を指定した際に .rdoc_options ファイルに保存されないオプ
ションの一覧を返します。... -
RDoc
:: Markup # add _ special(pattern , name) -> () (12231.0) -
pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま す。
...pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま
す。
例えば WikiWord のような、SM::SimpleMarkup#add_word_pair、
SM::SimpleMarkup#add_html でフォーマットできないものに対して使用
します。
@param pattern 正規......me SM::ToHtml などのフォーマッタに識別させる時の名前を
Symbol で指定します。
例:
require 'rdoc/markup/simple_markup'
require 'rdoc/markup/simple_markup/to_html'
class WikiHtml < SM::ToHtml
def handle_special_WIKIWORD(special)
"<font color=re......d>" + special.text + "</font>"
end
end
m = SM::SimpleMarkup.new
m.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
h = WikiHtml.new
puts m.convert(input_string, h)
変換時に実際にフォーマットを行うには SM::ToHtml#accept_special_<name で指定した名前>
のよ... -
Rake
:: FileList :: SPECIAL _ RETURN -> Array (12201.0) -
Array のインスタンスを返すので委譲した後にラップする必要があるメソッドのリストです。
Array のインスタンスを返すので委譲した後にラップする必要があるメソッドのリストです。 -
int SPECIAL
_ CONST _ P(VALUE obj) (12200.0) -
obj が実体の構造体を持たないとき真。 現時点で真になるのは Qnil, Qtrue, Qfalse と、 Fixnum, Symbol のインスタンス。
...obj が実体の構造体を持たないとき真。
現時点で真になるのは Qnil, Qtrue, Qfalse と、
Fixnum, Symbol のインスタンス。... -
static void special
_ local _ set(char c , VALUE val) (12200.0) -
$~ と $_ をセットします。 現在は c=0 が $_ で c=1 が $~ です。
$~ と $_ をセットします。
現在は c=0 が $_ で c=1 が $~ です。 -
Thread
# thread _ variable _ get(key) -> object | nil (9106.0) -
引数 key で指定した名前のスレッドローカル変数を返します。
...key で指定した名前のスレッドローカル変数を返します。
[注意]: Thread#[] でセットしたローカル変数(Fiber ローカル変数)と
異なり、Fiber を切り替えても同じ変数を返す事に注意してください。
例:
Thread.new {
Thread.current.......thread_variable_set("foo", "bar") # スレッドローカル
Thread.current["foo"] = "bar" # Fiber ローカル
Fiber.new {
Fiber.yield [
Thread.current.thread_variable_get("foo"), # スレッドローカル
Thread.current["foo"],......}.resume
}.join.value # => ['bar', nil]
この例の "bar" は Thread#thread_variable_get により得られ
た値で、nil はThread#[] により得られた値です。
@see Thread#thread_variable_set, Thread#[]
@see https://magazine.rubyist.net/articles/0041/0041-200Special-note.html... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (6116.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...he given method names, marks the method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword arguments, the......ment is marked with a special
flag such that if it is the final element of a normal argument splat to
another method call, and that method call does not include explicit
keywords or a keyword splat, the final element is interpreted as
keywords. In other words, keywords will be passed through the met......er methods.
This should only be used for methods that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
be... -
Proc
# ruby2 _ keywords -> proc (6116.0) -
Marks the proc as passing keywords through a normal argument splat. This should only be called on procs that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the proc such that if the proc is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the proc to other methods.
...rks the proc as passing keywords through a normal argument splat. This
should only be called on procs that accept an argument splat (`*args`)
but not explicit keywords or a keyword splat. It marks the proc such
that if the proc is called with keyword arguments, the final hash
argument is marked wit......a special flag such that if it is the final
element of a normal argument splat to another method call, and that
method call does not include explicit keywords or a keyword splat, the
final element is interpreted as keywords. In other words, keywords will
be passed through the proc to other methods......be used for procs that delegate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the proc re... -
int BUILTIN
_ TYPE(VALUE obj) (6116.0) -
obj の構造体型 ID を返します。 SPECIAL_CONST_P(obj) が真のオブジェクトに対して使うと落ちます。
...obj の構造体型 ID を返します。
SPECIAL_CONST_P(obj) が真のオブジェクトに対して使うと落ちます。...