るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.064秒)
トップページ > バージョン:2.1.0[x] > クエリ:String[x] > クエリ:h[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

キーワード

検索結果

REXML::Entity.matches?(string) -> bool (18676.0)

string が実体宣言の文法に従う文字列であれば真を返します。

...実体宣言の文法に従う文字列であれば真を返します。

@param string 判定対象の文字列

//emlist[][ruby]{
require 'rexml/document'

p REXML::Entity.matches?('<!ENTITY s "seal">') # => true
p REXML::Entity.matches?('<!ENTITY % s "seal">') # => true
p REXML::Entity.matches?('...

REXML::Attribute#xpath -> String (18610.0)

その属性を指定する xpath 文字列を返します。

その属性を指定する xpath 文字列を返します。

例えば "/foo/bar/@ns:r" という文字列を返します。

REXML::Element#xpath -> String (18610.0)

文書上の対象の要素にのみマッチする xpath 文字列を返します。

...文書上の対象の要素にのみマッチする xpath 文字列を返します。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new('<a><b/><c/></a>')
c = doc.root.elements[2] # <a> .. </a> の中の <c/> 要素
c # => <c/>
c.xpath # => "/a/c"
doc = REXML::Document.new('<a><b...

REXML::Element#text(path = nil) -> String | nil (610.0)

先頭のテキスト子ノードの文字列を返します。

...トノードがない場合には nil を返します。

@param path XPath文字列
@see REXML::Element#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 te...

REXML::Comment#<=>(other) -> -1 | 0 | 1 (355.0)

other と内容(REXML::Comment#string)を比較します。

other と内容(REXML::Comment#string)を比較します。

絞り込み条件を変える

REXML::Comment#==(other) -> bool (355.0)

other と内容(REXML::Comment#string)が同じならば真を返します。

other と内容(REXML::Comment#string)が同じならば真を返します。