187件ヒット
[1-100件を表示]
(0.053秒)
種類
- 特異メソッド (77)
- インスタンスメソッド (77)
- クラス (22)
- 定数 (11)
クラス
-
REXML
:: Attribute (11) -
REXML
:: Document (44) -
REXML
:: Element (22) -
REXML
:: Formatters :: Pretty (11) -
REXML
:: Formatters :: Transitive (11) -
REXML
:: Instruction (33) -
REXML
:: NotationDecl (11) -
REXML
:: XMLDecl (11)
モジュール
キーワード
-
DEFAULT
_ VERSION (11) - Instruction (11)
- NotationDecl (11)
- clone (11)
- content (11)
- context (11)
- entitydecl (11)
-
stand
_ alone? (11) - target (11)
- version (11)
検索結果
先頭5件
- REXML
:: Instruction . new(target , content = nil) -> REXML :: Instruction - REXML
:: NotationDecl . new(name , middle , pub , sys) -> REXML :: NotationDecl - REXML
:: Element . new(arg = UNDEFINED , parent = nil , context = nil) -> REXML :: Element - REXML
:: Attribute . new(attribute _ to _ clone , parent = nil) -> REXML :: Attribute - REXML
:: Document . new(source = nil , context = {}) -> REXML :: Document
-
REXML
:: Instruction . new(target , content = nil) -> REXML :: Instruction (21402.0) -
新たな Instruction オブジェクトを生成します。
...新たな Instruction オブジェクトを生成します。
@param target ターゲット
@param content 内容... -
REXML
:: NotationDecl . new(name , middle , pub , sys) -> REXML :: NotationDecl (21302.0) -
NotationDecl オブジェクトを生成します。
...NotationDecl オブジェクトを生成します。
@param name 記法名(文字列)
@param middle 種別("PUBLIC" もしくは "SYSTEM")
@param pub 公開識別子(文字列)
@param sys URI(文字列)... -
REXML
:: Element . new(arg = UNDEFINED , parent = nil , context = nil) -> REXML :: Element (18314.0) -
要素オブジェクトを生成します。
...が REXML::Element オブジェクトの場合は、
新たな要素の名前、属性、context が arg のもので初期化されます。
parent で親ノードを指定します。
context には hash table で要素のコンテキストを指定します。
基本的には text node (REXML::......。
また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitespace
空白を無視して欲しい要素の名前の集合を文字列の......ect_whitespace での指定を上書きします。
すべての要素で空白を無視して欲しい場合には
:all を指定します。
REXML::Element#whitespace も参照してください。
: :ignore_whitespace_nodes
空白のみからなるノードを無視して欲しい要素... -
REXML
:: Attribute . new(attribute _ to _ clone , parent = nil) -> REXML :: Attribute (18303.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属する要素(REXML::Element)... -
REXML
:: Document . new(source = nil , context = {}) -> REXML :: Document (18302.0) -
Document オブジェクトを生成します。
...O、REXML::Document のいずかが
指定できます。 REXML::Document を指定すると
コンテキストと要素、属性が複製されます。
文字列の場合はそれを XML と見なしてパースします。
IOの場合は、XML文書を読み出してパースします。
context......。
また、すべての要素で空白を考慮して欲しい場合には
:all を指定します。
デフォルト値は :all です。
REXML::Element#whitespace も参照してください。
: :compress_whitespace
空白を無視して欲しい要素の名前の集合を文字列の......ect_whitespace での指定を上書きします。
すべての要素で空白を無視して欲しい場合には
:all を指定します。
REXML::Element#whitespace も参照してください。
: :ignore_whitespace_nodes
空白のみからなるノードを無視して欲しい要素... -
REXML
:: Formatters :: Pretty . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Pretty (18302.0) -
フォーマッタオブジェクトを生成して返します。
...。
indentation でインデント幅を(空白の数で)指定します。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param indentation 出力のイン... -
REXML
:: Formatters :: Transitive . new(indentation=2 , ie _ hack=false) -> REXML :: Formatter :: Transitive (18302.0) -
フォーマッタオブジェクトを生成して返します。
...します。
indentation でインデント幅を指定できます。
ie_hack に真を渡すと、空のタグを閉じる前で空白を挿入します。
これは特定のバージョンのIEのXMLパーサのバグを避けるための機能です。
@param indentation インデント幅
@p... -
REXML
:: Instruction # content -> String | nil (9237.0) -
XML 処理命令の内容を返します。
...emlist[][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/cs......s\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}... -
REXML
:: XMLDecl :: DEFAULT _ VERSION -> String (6217.0) -
REXML::XMLDecl.new や REXML::XMLDecl.default で の使われるデフォルトのXMLバージョン。
...REXML::XMLDecl.new や REXML::XMLDecl.default で
の使われるデフォルトのXMLバージョン。... -
REXML
:: Document # stand _ alone? -> String (6213.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"
//}...