るりまサーチ

最速Rubyリファレンスマニュアル検索!
1308件ヒット [1-100件を表示] (0.148秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

REXML::Element#delete_attribute(key) -> REXML::Attribute | nil (9309.0)

要素から key という属性名の属性を削除します。

...

@
param key 削除する要素(文字列(属性名) or REXML::Attributeオブジェクト)

//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("E")
e.add_attribute("x", "foo"); e # => <E x='foo'/>
e.add_attribute("y:x", "bar"); e # => <E x='foo' y:x='bar'/>
e.delete_attribute("x")...

REXML::Attributes#get_attribute(name) -> Attribute | nil (9115.0)

name という名前の属性を取得します。

...

@
param name 属性名(文字列)
@
see REXML::Attributes#[]

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

doc = REXML::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.get_attribute("att") # => att='&lt;'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}...

REXML::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (9115.0)

namespace と name で特定される属性を返します。

...

@
param namespace 名前空間(URI, 文字列)
@
param name 属性名(文字列)

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

doc = REXML::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...
...et_elements("/root/a").first

a.attributes.get_attribute_ns("", "att") # => att='&lt;'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt...

REXML::ExternalEntity#write(output, indent) -> () (9115.0)

output へ self を文字列化して出力します。

...output へ self を文字列化して出力します。

このメソッドは deprecated です。REXML::Formatter で
出力してください。

@
param output 出力先の IO オブジェクト
@
param indent インデントの大きさ。無視されます。...

REXML::Formatters::Pretty#compact=(c) (9115.0)

出力をコンパクトにするかどうかを設定します。

...出力をコンパクトにするかどうかを設定します。

@
param c コンパクトな出力をするかどうかを指定します。
@
see REXML::Formatters::Pretty#compact...

絞り込み条件を変える

REXML::Formatters::Pretty#width=(w) (9115.0)

出力のページ幅を設定します。

...出力のページ幅を設定します。

@
param w ページ幅の設定値
@
see REXML::Formatters::Pretty#width...

REXML::DocType#entity(name) -> String | nil (9109.0)

name という実体参照名を持つ実体を文字列で返します。

...EXML::Entity#unnormalized 参照)
された文字列が返されます。

name という名前を持つ実体が存在しない場合には nil を返します。

@
param name 実体参照名(文字列)

//emlist[][ruby]{
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!ENTITY bar "...
...barbarbarbar">
]>
EOS
p doctype.entity("bar") # => "barbarbar"
p doctype.entity("foo") # => nil
//}...

REXML::Formatters::Pretty#compact -> bool (9109.0)

出力をコンパクトにするかどうかを返します。

...出力をコンパクトにするかどうかを返します。

これが真の場合、出力の空白をできる限り削除しようとします。

デフォルト値は false です。

@
see REXML::Formatters::Pretty#compact=...

REXML::Formatters::Pretty#width -> Integer (9109.0)

出力のページ幅を返します。

...出力のページ幅を返します。

デフォルトは80です。

@
see REXML::Formatters::Pretty#width=...
<< 1 2 3 ... > >>