Class: REXML::Element
Instance Attribute Summary collapse
-
#amrita_spec ⇒ Object
Returns the value of attribute amrita_spec.
Attributes inherited from Child
Instance Method Summary collapse
- #amrita_compile_main_code(cg) ⇒ Object
- #amrita_compile_sub_code(cg) ⇒ Object
- #to_s ⇒ Object
- #to_s_org ⇒ Object
Methods inherited from Parent
Methods inherited from Child
Instance Attribute Details
#amrita_spec ⇒ Object
Returns the value of attribute amrita_spec.
113 114 115 |
# File 'lib/amrita2/core.rb', line 113 def amrita_spec @amrita_spec end |
Instance Method Details
#amrita_compile_main_code(cg) ⇒ Object
114 115 116 117 118 119 120 121 122 |
# File 'lib/amrita2/core.rb', line 114 def amrita_compile_main_code(cg) if amrita_no_spec and not amrita_has_cdata? super else cg.compile_element_main_code(self) do super end end end |
#amrita_compile_sub_code(cg) ⇒ Object
124 125 126 127 128 129 130 |
# File 'lib/amrita2/core.rb', line 124 def amrita_compile_sub_code(cg) cg.compile_element_sub_code(self) do elements.each do |e| e.amrita_compile_sub_code(cg) end end end |
#to_s ⇒ Object
133 134 135 |
# File 'lib/amrita2/core.rb', line 133 def to_s Amrita2::SanitizedString[to_s_org] end |
#to_s_org ⇒ Object
132 |
# File 'lib/amrita2/core.rb', line 132 alias to_s_org to_s |