るりまサーチ

最速Rubyリファレンスマニュアル検索!
170件ヒット [1-100件を表示] (0.017秒)
トップページ > クエリ:format[x] > クエリ:Default[x]

別のキーワード

  1. benchmark format
  2. logger datetime_format
  3. logger datetime_format=
  4. tms format
  5. ipaddr in6format

検索結果

<< 1 2 > >>

REXML::Formatters::Default (21036.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
_formatt...
...er = 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
# => "<ch...
...ildren>\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"
//}...

Gem.default_exec_format -> String (12202.0)

デフォルトのインストールするコマンド名を決めるためのフォーマット文字列を返します。

デフォルトのインストールするコマンド名を決めるためのフォーマット文字列を返します。

REXML::Formatters::Default.new(ie_hack=false) -> REXML::Formatter::Default (6201.0)

フォーマッタオブジェクトを生成して返します。

フォーマッタオブジェクトを生成して返します。

このフォーマッタによる出力は基本的にテキストの空白や改行を変化させません。

ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。

@param ie_hack 空のタグを閉じる所にスペースを入れるかどうかを指定します

Gem::DependencyInstaller::DEFAULT_OPTIONS -> Hash (6107.0)

自身を初期化する際に使用するデフォルトのオプションです。

...オプションです。

:env_shebang => false,
:domain => :both, # HACK dup
:force => false,
:format_executable => false, # HACK dup
:ignore_dependencies => false,
:security_policy => nil, # HACK NoSecurity requires OpenSSL. AlmostN...

REXML::Formatters::Default#write(node, output) -> () (6000.0)

XML のノード node を output に出力します。

XML のノード node を output に出力します。

node には任意のXMLノードを指定できます。

@param node 出力するノード
@param output 出力先(IO など << で出力できるオブジェクト)

絞り込み条件を変える

Marshal フォーマット (3060.0)

Marshal フォーマット フォーマットバージョン 4.8 を元に記述しています。

...==== String, Regexp, Array, Hash のサブクラス (インスタンス変数あり)

'I' で始まるデータ構造になります。
d:marshal_format#instance_variableも参照してください。

//emlist[例 2: インスタンス変数あり][ruby]{
class Foo < Array # (or String, Regexp, Ha...
..."T", 6, ":", 9, "@foo", "F"]
//}

==== その他

実装上内部構造が異なるため、上記以外では、'o' になります。
(d:marshal_format#Object 参照)

//emlist[例][ruby]{
class Foo
end
p Marshal.dump(Foo.new).unpack("x2 a a c a*")
# => ["o", ":", 8, "Foo\x00"]
//}

=== 'u'

_dump...
...//}

//emlist[例][ruby]{
p Marshal.dump([true, false, nil]).unpack("x2 a c a a a")
# => ["[", 8, "T", "F", "0"]
//}

=== Hash

==== Hash without default value

'{' で始まるデータ構造になります。

//emlist{
| '{' | 要素数(Fixnum形式) | キーの dump | 値の dump | ... |
//}

/...

REXML::Formatters::Pretty (3006.0)

XMLドキュメントを(文字列として)見た目良く出力するクラスです。

...て)見た目良く出力するクラスです。

REXML::Formatters::Default
異なり見た目のためテキストの改行や空白を修正して出力します。

//emlist[][ruby]{
require 'rexml/document'
require 'rexml/formatters/pretty'
doc = REXML::Document.new <<EOS
<root>
<children>...
...<grandchildren foo='bar'/>
</children>
</root>
EOS

pretty_formatter = REXML::Formatters::Pretty.new
output = StringIO.new
pretty_formatter.write(doc, output)
output.string
# => "<root>\n <children>\n <grandchildren foo='bar'/>\n </children>\n</root>"
# この出力結果は入力のXMLよ...

WEBrick::HTTPServer.new(config = {}, default = WEBrick::Config::HTTP) -> WEBrick::HTTPServer (137.0)

HTTPServer オブジェクトを生成して返します。

...は 1.1 です。
: :AccessLog
アクセスログの出力先とフォーマットを [[io, format], [io, format], ...] のような
配列で指定します。io は IO オブジェクトです。format は文字列です。デフォルトでは
フォーマットの形式は Apache のそれ...
.../mod/mod_log_config.html#formats
WEBrick::AccessLog::COMMON_LOG_FORMAT WEBrick::AccessLog::REFERER_LOG_FORMAT
も参照して下さい。
: :MimeTypes
拡張子と mime-type との対応をハッシュで指定します。デフォルトは
WEBrick::HTTPUtils::DefaultMimeTypes です。
: :D...
...場合、クライアントからのリクエスト URI に含まれる 8bit 目が立った文字をエスケープします。
デフォルトは false です。

@param default config で指定されなかった場合のデフォルトの設定を保存したハッシュを指定します。...

NEWS for Ruby 3.0.0 (84.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...l:label-TypeProf] is experimentally bundled. It is a
type analysis tool for Ruby programs.
* Deprecation warnings are no longer shown by default (since Ruby 2.7.2).
Turn them on with `-W:deprecated` (or with `-w` to show other warnings too).
16345
* `$SAFE` and `$KCODE` are now n...
...it may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Dir
* Dir.glob and Dir.[] now sort the results by default, and accept the `sort:` keyword option. 8709
* ENV
* ENV.except has been added, which returns a hash excluding the given keys and their va...
...image, between extension libraries. The extension libraries can share also the metadata of the memory area that consists of the shape, the element format, and so on. Using these kinds of metadata, the extension libraries can share even a multidimensional array appropriately. This feature is designe...
<< 1 2 > >>