Ruby 2.2.0 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::Attributeクラス
クラス・モジュールの継承リスト: REXML::Attribute < REXML::Node < REXML::Namespace < REXML::XMLTokens < Object < Kernel < BasicObject
要素(REXML::Element)の属性を表すクラスです。
つまり、 <element attribute="value"/> という要素における attribute=value というペアのことです。
属性にはなんらかの名前空間(namespace, REXML::Namespace) に属することができます。
定義 | 説明 | |
---|---|---|
new(attribute_to_clone, parent = nil) -> REXML::Attribute
|
新たな属性オブジェクトを生成します。 |
定義 | 説明 | |
---|---|---|
self == other -> bool
|
属性の名前と値が other と一致する場合に真を返します。 |
|
clone -> REXML::Element
|
self を複製し返します。 |
|
element -> REXML::Element
|
その属性が属する要素を返します。 |
|
element=(element)
|
self が属する要素を変更します。 |
|
namespace(arg = nil) -> String | nil
|
属性の名前空間の URI を返します。 |
|
node_type -> Symbol
|
「:attribute」というシンボルを返します。 |
|
normalized=(value)
|
正規化された属性値を設定します。 |
|
prefix -> String
|
属性の名前空間を返します。 |
|
remove -> ()
|
self を所属する要素から取り除きます。 |
|
to_s -> String
|
正規化された属性値を返します。 |
|
to_string -> String
|
"name='value'" という形式の文字列を返します。 |
|
value -> String
|
正規化されていない属性値を返します。 |
|
write(output, indent = -1) -> object
|
output に self の情報を name='value' という形式で書き込みます。 |
|
xpath -> String
|
その属性を指定する xpath 文字列を返します。 |
!
!=
__id__
__send__
instance_eval
instance_exec
method_missing
singleton_method_added
singleton_method_removed
singleton_method_undefined
!~
<=>
===
=~
_dump
class
clone
define_singleton_method
display
enum_for
eql?
equal?
extend
freeze
frozen?
hash
initialize
initialize_copy
inspect
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
itself
marshal_dump
marshal_load
method
methods
nil?
object_id
pretty_inspect
pretty_print
pretty_print_cycle
pretty_print_inspect
pretty_print_instance_variables
private_methods
protected_methods
psych_to_yaml
public_method
public_methods
public_send
remove_instance_variable
respond_to?
respond_to_missing?
send
singleton_class
singleton_method
singleton_methods
taint
tainted?
tap
to_a
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_str
trust
untaint
untrust
untrusted?
.yaml_tag
::ARGF
::ARGV
::DATA
::ENV
::FALSE
::NIL
::RUBY_COPYRIGHT
::RUBY_DESCRIPTION
::RUBY_ENGINE
::RUBY_PATCHLEVEL
::RUBY_PLATFORM
::RUBY_RELEASE_DATE
::RUBY_REVISION
::RUBY_VERSION
::SCRIPT_LINES__
::STDERR
::STDIN
::STDOUT
::TOPLEVEL_BINDING
::TRUE
expanded_name
fully_expanded_name
has_name?
local_name
name=
prefix=
each_recursive
find_first_recursive
index_in_parent
next_sibling_node
parent?
previous_sibling_node