99件ヒット
[1-99件を表示]
(0.023秒)
種類
- インスタンスメソッド (44)
- 特異メソッド (33)
- クラス (11)
- ライブラリ (11)
ライブラリ
- json (22)
-
rdoc
/ generator / darkfish (11) -
rdoc
/ generator / json _ index (11) -
rdoc
/ generator / ri (11)
クラス
-
JSON
:: State (22) -
RDoc
:: Generator :: Darkfish (11) -
RDoc
:: Generator :: JsonIndex (11) -
RDoc
:: Generator :: RI (11) -
RDoc
:: Options (22)
キーワード
- Options (11)
-
from
_ state (11) - generator= (11)
- initialize (22)
- new (22)
-
rdoc
/ generator (11)
検索結果
先頭5件
-
RDoc
:: Options # generator -> Generator (21224.0) -
コマンドライン引数の --fmt オプションで指定した文字列に応じた Generator を返します。
...コマンドライン引数の --fmt オプションで指定した文字列に応じた
Generator を返します。
指定しなかった場合は、HTML に対応する Generator を返します。... -
RDoc
:: Options # generator=(val) (9107.0) -
コマンドライン引数の --fmt オプションと同様の指定を行います。
...コマンドライン引数の --fmt オプションと同様の指定を行います。
@param val 設定する Generator を指定します。... -
rdoc
/ generator (6036.0) -
RDoc が解析したソースコードを RDoc::CodeObject のツリーから その他の形式に出力するためのサブライブラリです。
...oc::Generator::Darkfish と ri 向けのジェネレータの
RDoc::Generator::RI が付属しています。
=== ジェネレータの登録
RDoc::RDoc.add_generator を呼び出す事でジェネレータの登録が行えます。
class My::Awesome::Generator
RDoc::RDoc.add_generator sel......RDoc::Options は各ジェネ
レータの #setup_options メソッドを実行します。ジェネレータは 第一引数で
渡される RDoc::Options#option_parser に対して rdoc コマンドのオプ
ションを追加できます。lib:rdoc/options#custom_options の例と
OptionParser......解析した後は RDoc:RDoc オブジェクトはジェネレータの
コンストラクタの引数に RDoc::Store オブジェクトと
RDoc::Options オブジェクトを渡して初期化します。
RDoc::Store オブジェクトは解析したソースコードに関する情報を保持... -
RDoc
:: Options (6018.0) -
rdoc コマンドのオプションを解析するためのクラスです。
...options] カスタムオプション
RDoc のジェネレータでは、RDoc::Options をフックして独自の
オプションを指定できます。
Object::ARGV に --format が含まれていた場合、RDoc はジェネ
レータ独自のオプションを解析するために setup_option......例:
class RDoc::Generator::Spellcheck
RDoc::RDoc.add_generator self
def self.setup_options rdoc_options
op = rdoc_options.option_parser
op.on('--spell-dictionary DICTIONARY',
RDoc::Options::Path) do |dictionary|
# RDoc::Options に spell_dictionary ア......クセサの定義が必要
rdoc_options.spell_dictionary = dictionary
end
end
end... -
RDoc
:: Generator :: JsonIndex . new(parent _ generator , options) -> RDoc :: Generator :: JsonIndex (3336.0) -
RDoc::Generator::JsonIndex オブジェクトを初期化します。
...RDoc::Generator::JsonIndex オブジェクトを初期化します。
@param parent_generator 親となるジェネレータオブジェクトを指定します。
RDoc::Generator::JsonIndex#class_dir や
#file_dir を決めるのに使用します......のジェネレータとは異なり、RDoc::Store
オブジェクトではない点に注意してください。
@param options RDoc::Options オブジェクトを指定します。
parent_generator に渡されたものと同じものを指定します。... -
RDoc
:: Generator :: Darkfish # initialize(store , options) -> RDoc :: Generator :: Darkfish (3217.0) -
RDoc::Generator::Darkfish オブジェクトを初期化します。
...RDoc::Generator::Darkfish オブジェクトを初期化します。
@param store RDoc::Store オブジェクトを指定します。
@param options RDoc::Options オブジェクトを指定します。... -
RDoc
:: Generator :: RI # initialize(store , options) -> RDoc :: Generator :: RI (3217.0) -
RDoc::Generator::RI オブジェクトを初期化します。
...RDoc::Generator::RI オブジェクトを初期化します。
@param store RDoc::Store オブジェクトを指定します。
@param options RDoc::Options オブジェクトを指定します。... -
JSON
:: State . new(options = {}) -> JSON :: State (118.0) -
自身を初期化します。
...自身を初期化します。
@param options ハッシュを指定します。
指定可能なオプションは以下の通りです。
: :indent
インデントに使用する文字列を指定します。デフォルトは空文字列です。
: :space
JSON 形式の文字列のト......す。
: :buffer_initial_length
sets the initial length of the generator's internal buffer.
//emlist[例 Hash を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State......を指定][ruby]{
require "json"
json_state = JSON::State.new(indent: "\t")
copy = JSON::State.new(json_state)
copy.class # => JSON::Ext::Generator::State
copy.indent # => "\t"
//}... -
JSON
:: State . from _ state(options) -> JSON :: State (112.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...与えられた options によって生成した JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を......返します。options が JSON::State のインスタンスである場合は単に
options を返します。いずれでも無い場合は、何も設定されていない JSON::State の
インスタンスを返します。
//emlist[例 Hash を指定][ruby]{
require "json"
j......t::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処理を実行する
copy = JSON::State.from_state(json_state)
copy.class # => JSON::Ext::Generator::S...