Ruby 3.3 リファレンスマニュアル > ライブラリ一覧 > rexml/documentライブラリ > REXML::DocTypeクラス
クラス・モジュールの継承リスト: REXML::DocType < REXML::XMLTokens < REXML::Parent < Enumerable < REXML::Child < REXML::Node < Object < Kernel < BasicObject
XML の DTD(文書型定義、Document Type Definition)を表すクラスです。
rexml では DTD は積極的にはサポートされていません。デフォルトの実体定義(gt, lt, amp, quot apos)の解決のため DTD はある程度はサポートされますが、スキーマの定義や検証をしたい場合は XML schema や RELAX NG などを使ってください。
子ノード(REXML::Parent#children)として、
などを保持しています。
定義 | 説明 | |
---|---|---|
new(source, parent = nil) -> REXML::DocType
|
DocType オブジェクトを生成します。 |
定義 | 説明 | |
---|---|---|
DEFAULT_ENTITIES -> { String => REXML::Entity }
|
XML の仕様上デフォルトで定義されている実体の Hash table。 |
!
!=
__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_clone
initialize_copy
initialize_dup
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
tap
then
to_ary
to_hash
to_int
to_io
to_proc
to_regexp
to_s
to_str
.yaml_tag
::ARGF
::ARGV
::DATA
::ENV
::RUBY_COPYRIGHT
::RUBY_DESCRIPTION
::RUBY_ENGINE
::RUBY_ENGINE_VERSION
::RUBY_PATCHLEVEL
::RUBY_PLATFORM
::RUBY_RELEASE_DATE
::RUBY_REVISION
::RUBY_VERSION
::SCRIPT_LINES__
::STDERR
::STDIN
::STDOUT
::TOPLEVEL_BINDING
bytes
document
next_sibling
next_sibling=
parent
parent=
previous_sibling
previous_sibling=
remove
replace_with
<<
[]
[]=
children
deep_clone
delete
delete_at
delete_if
each
each_index
index
insert_after
insert_before
length
parent?
replace_child
unshift