156件ヒット
[1-100件を表示]
(0.113秒)
ライブラリ
- ビルトイン (36)
-
rexml
/ document (84) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) -
webrick
/ httpresponse (12)
クラス
-
Encoding
:: UndefinedConversionError (36) -
REXML
:: Document (36) -
REXML
:: Instruction (24) -
REXML
:: XMLDecl (24) -
WEBrick
:: HTTPResponse (12)
モジュール
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
- == (12)
- chunked= (12)
- content (12)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) -
error
_ char (12) -
stand
_ alone? (12) - target (12)
- xmldecl (36)
検索結果
先頭5件
-
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (24431.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (24314.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
REXML
:: Document # encoding -> String (21220.0) -
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 # => "UTF-8"
//}... -
REXML
:: Document # version -> String (21220.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 # => "1.0"
//}... -
Encoding
:: UndefinedConversionError # error _ char -> String (6113.0) -
エラーを発生させた1文字を文字列で返します。
...エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//}... -
REXML
:: Document # stand _ alone? -> String (6113.0) -
XML 宣言の standalone の値を文字列で返します。
...XML 宣言の standalone の値を文字列で返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.stand_alone? # => "yes"
//}... -
REXML
:: Instruction # content -> String | nil (6113.0) -
XML 処理命令の内容を返します。
...mlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css......\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}... -
REXML
:: Instruction # target -> String (6113.0) -
XML 処理命令のターゲットを返します。
...ist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"sty... -
REXML
:: StreamListener # xmldecl(version , encoding , standalone) -> () (3351.0) -
XML宣言をパースしたときに呼び出されるコールバックメソッドです。
...バックメソッドです。
version, encoding, standalone はXML宣言内で
対応する構成要素が省略されている場合には nil が渡されます。
@param version 宣言されているバージョンが文字列で渡されます。
@param encoding 宣言されているエンコ......が文字列で渡されます。
@param standalone スタンドアロン文書であるかどうかが "yes" "no" で渡されます
=== 例
<?xml version="1.0" encoding="utf-8"?>
というXML宣言に対しては
version: "1.0"
encoding: "utf-8"
standalone: nil
という引数が渡され...