156件ヒット
[101-156件を表示]
(0.030秒)
種類
- インスタンスメソッド (132)
- 文書 (12)
- クラス (12)
ライブラリ
- psych (24)
-
rexml
/ document (120)
クラス
-
Psych
:: Nodes :: Node (12) -
REXML
:: Attributes (36) -
REXML
:: CData (24) -
REXML
:: Element (60)
キーワード
- Mapping (12)
- []= (12)
-
add
_ attribute (24) - each (12)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
get
_ text (12) -
ruby 1
. 8 . 3 feature (12) - tag (12)
- text (12)
-
to
_ s (12)
検索結果
先頭5件
-
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (24.0) -
各属性に対しブロックを呼び出します。
...::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://ex... -
REXML
:: Element # get _ text(path = nil) -> REXML :: Text | nil (24.0) -
先頭のテキスト子ノードを返します。
...キスト子ノードを返します。
raw モードの設定は無視され、常に正規化されたテキストを返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返し......xt
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ... </p>) は2つのテキストノード("some text " と " more text"
# を持っているが、前者を返す
doc.root.get_text.value # => "some text "
//}... -
ruby 1
. 8 . 3 feature (24.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...ョンを受け付けるようになりました。
cd が :noop オプションを受け付けなくなりました。
cp_r が :dereference_root オプションを受け付けるようになりました。
=== 2005-09-16
: File.join [ruby] [compat]
型チェックを厳密にするよう......eb.resource.org/rss/1.0/modules/image/>))のサポート
=== 2005-02-03
: RSS::Element#convert(value) [lib] [new]
valueのエンコーディングを変換するメソッドを公開。
valueのエンコーディングは要素の内部エンコーディングからoutput_encoding=で設... -
REXML
:: Element # text(path = nil) -> String | nil (18.0) -
先頭のテキスト子ノードの文字列を返します。
...いことに注意してください。
raw モードの設定は無視され、常に正規化されたテキストを返します。
REXML::Text#value も参照してください。
path を渡した場合は、その XPath 文字列で指定される
テキストノードの文字列を返し......ent#get_text
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ... </p>) は2つのテキストノード("some text " と " more text"
# を持っているが、前者を返す
doc.root.text # => "some text "
//}... -
Psych
:: Nodes :: Mapping (12.0) -
YAML の mapping http://yaml.org/spec/1.1/#mapping を表すクラスです。
...:Nodes::Sequence
* Psych::Nodes::Mapping
* Psych::Nodes::Scalar
* Psych::Nodes::Alias
子ノードは mapping のキーと値が交互に並んでいます。
ast = Psych.parse(<<EOS)
%YAML 1.1
---
x: y
u: v
EOS
p ast.root.children.map{|v| v.value } # => ["x", "y", "u", "v"]...