るりまサーチ

最速Rubyリファレンスマニュアル検索!
156件ヒット [101-156件を表示] (0.030秒)
トップページ > クエリ:root[x] > クエリ:value[x]

別のキーワード

  1. pstore root?
  2. document root
  3. psych root
  4. pathname root?
  5. rexml/document root

ライブラリ

キーワード

検索結果

<< < 1 2 >>

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='&lt;'/>
</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"]...

絞り込み条件を変える

<< < 1 2 >>