Ruby 2.1.0 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::Entityクラス > to_s

instance method REXML::Entity#to_s

to_s -> String[permalink][rdoc]

実体宣言を文字列化したものを返します。

[SEE_ALSO] REXML::Entity#write


e = REXML::ENTITY.new("w", "wee");
p e.to_s # => "<!ENTITY w \"wee\">"