143件ヒット
[1-100件を表示]
(0.039秒)
別のキーワード
ライブラリ
- csv (12)
-
rexml
/ document (60)
クラス
- CSV (12)
-
REXML
:: Document (36)
キーワード
- DECLARATION (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) - Pretty (12)
- Ruby用語集 (12)
- encoding (12)
- new (12)
- rdoc (12)
-
rexml
/ parsers / sax2parser (12) -
ruby 1
. 8 . 4 feature (12) - version (12)
- xmlrpc (3)
検索結果
先頭5件
-
REXML
:: Formatters :: Default (18048.0) -
XMLドキュメントを(文字列として)出力するクラスです。
...す。
//emlist[][ruby]{
require 'rexml/document'
require 'rexml/formatters/default'
doc = REXML::Document.new <<EOS
<root>
<children>
<grandchildren/>
</children>
</root>
EOS
default_formatter = REXML::Formatters::Default.new
output = StringIO.new
default_formatter.write(doc, output)
output.str......ildren/>\n</children>\n</root>\n"
output = StringIO.new
default_formatter.write(REXML::XPath.first(doc, "/root/children"), output)
output.string
# => "<children>\n <grandchildren/>\n</children>"
ie_hack_formatter = REXML::Formatters::Default.new(true)
output = StringIO.new
ie_hack_formatter.write... -
REXML
:: Document # encoding -> String (3018.0) -
XML 宣言に含まれている XML 文書のエンコーディングを返します。
...。
文書が XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.encoding... -
REXML
:: Document # version -> String (3018.0) -
XML 宣言に含まれている XML 文書のバージョンを返します。
...。
文書が XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.version #... -
REXML
:: Document :: DECLARATION -> REXML :: XMLDecl (3016.0) -
この定数は deprecated です。REXML::XMLDecl.default を 代わりに使ってください。
...この定数は deprecated です。REXML::XMLDecl.default を
代わりに使ってください。
デフォルトとして使えるXML宣言オブジェクト。... -
NEWS for Ruby 2
. 0 . 0 (138.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...します
* Hash
* 追加: Hash#to_h 明示的に変換するメソッドです。Array#to_a に似ています
* 拡張: Hash#default_proc= default proc をクリアするために nil を渡せるようになりました
* IO
* 非推奨: IO#lines, #bytes, #chars, #codepoints......at thread creation.
default: 128KB (32bit CPU) or 256KB (64bit CPU).
* RUBY_THREAD_MACHINE_STACK_SIZE: machine stack size used at thread
creation. default: 512KB or 1024KB.
* RUBY_FIBER_VM_STACK_SIZE: vm stack size used at fiber creation.
default: 64KB or 128KB.......olv
* 追加: Resolv::DNS#timeouts=
* 追加: Resolv::DNS::Config#timeouts=
* rexml
* REXML::Document#write はハッシュ引数をサポートしました
* REXML::Document#write は :encoding オプションをサポートしました。
XMLドキュメントのエンコ... -
rexml
/ parsers / sax2parser (54.0) -
SAX2 と同等の API を持つストリーム式の XML パーサ。
...ITY % HTMLsymbol PUBLIC
"-//W3C//ENTITIES Symbols for XHTML//EN"
"xhtml-symbol.ent">
%HTMLsymbol;
]>
<root xmlns="http://example.org/default"
xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar"><![CDATA[cdata is here]]>
<a foo:att='1' bar:att='2' att='&l......include_private)
name != :call
end
end
parser = REXML::Parsers::SAX2Parser.new(xml)
parser.listen(Listener.new)
parser.parse
# >> [:start_document]
# >> [:xmldecl, "1.0", "UTF-8", nil]
# >> [:progress, 39]
# >> [:characters, "\n"]
# >> [:progress, 91]
# >> [:processing_instruction, "xml-styl......ping, nil, "http://example.org/default"]
# >> [:start_prefix_mapping, "foo", "http://example.org/foo"]
# >> [:start_prefix_mapping, "bar", "http://example.org/bar"]
# >> [:start_element, "http://example.org/default", "root", "root", {"xmlns"=>"http://example.org/default", "xmlns:foo"=>"http://exampl... -
Ruby用語集 (36.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...//blade.nagaokaut.ac.jp/ruby/
: bundled gem
標準添付ライブラリーの gem のうち、アンインストールできるもの。
→ default gem、標準添付ライブラリー
: Bundler
特定の Ruby アプリケーションで使用する gem とそのバージョンを Gemfile......uby では、文字列は
エンコーディング情報をもたないバイト列であった。
→エンコーディング
===[a:D] D
: default gem
標準添付ライブラリーの gem のうち、アンインストールできないもの。
→ bundled gem、標準添付ライブ......し、切り替えて使うための
ツールの一つ。Linux、macOS などで動作する。
https://github.com/rbenv/rbenv
: RD(Ruby Document format)
Ruby スクリプト中に記述することを念頭に作られたドキュメントフォーマット。
: RDoc
Ruby スクリ... -
CSV
. new(data , options = Hash . new) -> CSV (24.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...f those sequences is
found, +data+ is ARGF, Object::STDIN, Object::STDOUT, or
Object::STDERR, or the stream is only available for output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set manually if speed is important. Also
note that IO......should be opened in binary mode on Windows if this
feature will be used as the line-ending translation can cause
problems with resetting the document position to where it was before the
read ahead. This String will be transcoded into the data's Encoding before parsing.
: :quote_char
フ......at are effectively DoS attacks on the parser. However, this
limit can cause a legitimate parse to fail and thus is set to +nil+, or off,
by default.
: :converters
CSV::Converters から取り出した名前の配列です。変換器が一つだけ
の場合は配列に格納する必要... -
rdoc (24.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...tomdoc のいずれかから選択できます。
: --root root
Root of the source tree documentation will be generated for. Set this
when building documentation outside the source directory. Default is
the current directory.
: --page-dir dir
Directory where guides, your FAQ or other p......ます。=begin/=end を使う場合は、
以下のように =begin の行に 'rdoc' タグを付ける必要があります。
=begin rdoc
Documentation to
be processed by RDoc.
=end
パラグラフは左のインデントを揃えたテキストのかたまりで構成されます。そ......れます。
//emlist{
{ruby-lang.org}[www.ruby-lang.org]
//}
: クラスやメソッド
\RDoc::RDoc#document は以下のように変換されます。
//emlist{
RDoc::RDoc#document
//}
: タグ内のエスケープ無視(S クラスは定義済み)
<tt>\S</tt> は以下のように...