るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.113秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:one?[x] > バージョン:2.2.0[x] > クラス:REXML::Document[x]

別のキーワード

  1. _builtin one?
  2. enumerable one?
  3. array one?
  4. bn one?
  5. openssl one?

ライブラリ

検索結果

REXML::Document#stand_alone? -> String (18307.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"
//}...