478件ヒット
[201-300件を表示]
(0.080秒)
ライブラリ
- logger (93)
-
rdoc
/ markup (12) -
rdoc
/ markup / formatter (48) -
rdoc
/ text (12) -
rexml
/ document (192) -
syslog
/ logger (48)
クラス
- Logger (33)
-
Logger
:: Formatter (48) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (36) -
RDoc
:: Options (24) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Element (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (24) -
REXML
:: Formatters :: Pretty (60) -
REXML
:: Formatters :: Transitive (12) -
REXML
:: NotationDecl (12) -
Syslog
:: Logger (24) -
Syslog
:: Logger :: Formatter (12)
モジュール
-
RDoc
:: Text (12)
キーワード
- Default (12)
- Format (12)
- Formatter (36)
-
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 3
. 1 . 0 (4) - Pretty (12)
- Transitive (12)
-
add
_ tag (12) - call (24)
- compact (12)
- compact= (12)
- convert (24)
-
datetime
_ format (12) -
datetime
_ format= (12) - formatter= (36)
- logger (12)
- markup (12)
- new (57)
-
rdoc
/ markup / formatter (12) -
ruby 1
. 8 . 3 feature (12) - width (12)
- width= (12)
- write (72)
検索結果
先頭5件
-
REXML
:: Formatters :: Pretty # compact=(c) (9100.0) -
出力をコンパクトにするかどうかを設定します。
...出力をコンパクトにするかどうかを設定します。
@param c コンパクトな出力をするかどうかを指定します。
@see REXML::Formatters::Pretty#compact... -
Syslog
:: Logger :: Formatter # call(severity , time , progname , message) -> String (9100.0) -
引数を元にフォーマットした文字列を返します。
引数を元にフォーマットした文字列を返します。
ライブラリ内部で使用します。 -
REXML
:: Formatters :: Default (9030.0) -
XMLドキュメントを(文字列として)出力するクラスです。
...::Formatters::Pretty と
異なりテキストの改行や空白を修正せずにそのまま出力します。
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/formatters/default'
doc = REXML::Document.new <<EOS
<root>
<children>
<grandchildren/>
</children>
</root>
EOS
default_format......ter = REXML::Formatters::Default.new
output = StringIO.new
default_formatter.write(doc, output)
output.string
# => "<root>\n<children>\n <grandchildren/>\n</children>\n</root>\n"
output = StringIO.new
default_formatter.write(REXML::XPath.first(doc, "/root/children"), output)
output.string
# => "<c......hildren>\n <grandchildren/>\n</children>"
ie_hack_formatter = REXML::Formatters::Default.new(true)
output = StringIO.new
ie_hack_formatter.write(doc, output)
output.string
# => "<root>\n<children>\n <grandchildren />\n</children>\n</root>\n"
//}... -
REXML
:: Formatters :: Transitive (9018.0) -
XMLドキュメントをテキストの内容を変えずに 多少の整形を加えて出力するクラスです。
...exml/formatters/transitive'
doc = REXML::Document.new <<EOS
<root><children>
<grandchildren foo='bar' />
</children></root>
EOS
transitive_formatter = REXML::Formatters::Transitive.new
output = StringIO.new
transitive_formatter.write(doc, output)
output.string
# => "<root\n><children\n >\n<grandch......ildren foo='bar'\n />\n</children\n ></root\n>\n"
print output.string
# >> <root
# >> ><children
# >> >
# >> <grandchildren foo='bar'
# >> />
# >> </children
# >> ></root
# >> >
output = StringIO.new
transitive_formatter.write(REXML::XPath.first(doc, "/root/children"), output)
output.st......ring
# => "<children\n>\n<grandchildren foo='bar'\n />\n</children\n>"
//}... -
RDoc
:: Markup :: Formatter . new(markup = nil) -> RDoc :: Markup :: Formatter (6301.0) -
自身を初期化します。
...自身を初期化します。
@param markup RDoc::Markup オブジェクトを指定します。省略した場合
は新しく作成します。... -
REXML
:: Formatters :: Pretty . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Pretty (6301.0) -
フォーマッタオブジェクトを生成して返します。
...す。
indentation でインデント幅を(空白の数で)指定します。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param indentation 出力のイ......ンデント幅
@param ie_hack 空のタグを閉じる所にスペースを入れるかどうか... -
REXML
:: Formatters :: Transitive . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Transitive (6301.0) -
フォーマッタオブジェクトを生成して返します。
...ndentation でインデント幅を指定できます。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param indentation インデント幅
@param ie_hack... -
REXML
:: Formatters :: Default . new(ie _ hack=false) -> REXML :: Formatter :: Default (6201.0) -
フォーマッタオブジェクトを生成して返します。
...の空白や改行を変化させません。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param ie_hack 空のタグを閉じる所にスペースを入れ... -
RDoc
:: Text # markup(text) -> String (6106.0) -
引数を整形します。
...引数を整形します。
include したクラスに self#formatter メソッドが必要です。
@param text 文字列を指定します。...