Class: Xyml::Element
- Inherits:
-
Hash
- Object
- Hash
- Xyml::Element
- Includes:
- Xyml_element
- Defined in:
- lib/ixyml/xyml.rb
Overview
Xyml::Element class implement the element object in XYML tree data. See Xyml_element module for more detaled specifications.
Xyml::Elementクラスは、XYMLツリーデータ中のエレメントを実装するクラスである。 詳細については、Xyml_elementモジュール参照。
Instance Method Summary collapse
-
#initialize(name) ⇒ Element
constructor
create an instance of Xyml::Element class.
Methods included from Xyml_element
#_dp, #_sp, #ac, #at, #da, #dsl, #ga, #gc, #gca, #gcf, #gcfn, #gcfna, #gcn, #gcna, #gda, #gdfn, #gdfna, #gdn, #gdna, #gp, #gr, #gsp, #gss, #gt, #is_root?, #isp, #iss, #name, #sa, #st
Constructor Details
#initialize(name) ⇒ Element
create an instance of Xyml::Element class.
Xyml::Elementクラスのインスタンスを生成する。
Args
- name
-
Element name.
- name
-
エレメント名
290 291 292 293 294 |
# File 'lib/ixyml/xyml.rb', line 290 def initialize name name=name.intern unless name.is_a?(Symbol) self[name]=Array.new self end |