Class: RXaal::Par
- Inherits:
-
XaalElement
- Object
- XaalElement
- RXaal::Par
- Defined in:
- lib/par.rb
Instance Attribute Summary collapse
-
#hide ⇒ Object
readonly
Returns the value of attribute hide.
-
#show ⇒ Object
readonly
Returns the value of attribute show.
Attributes inherited from XaalElement
Instance Method Summary collapse
-
#initialize(doc) ⇒ Par
constructor
attr_accessor_of_class :change_style.
- #xaal_serialize(parent) ⇒ Object
Methods inherited from XaalElement
#add_attribute, #add_ref, get_new_default_id, modify_ref, #rm_ref, #superclass_serialize
Constructor Details
Instance Attribute Details
#hide ⇒ Object (readonly)
Returns the value of attribute hide.
3 4 5 |
# File 'lib/par.rb', line 3 def hide @hide end |
#show ⇒ Object (readonly)
Returns the value of attribute show.
3 4 5 |
# File 'lib/par.rb', line 3 def show @show end |
Instance Method Details
#xaal_serialize(parent) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/par.rb', line 12 def xaal_serialize(parent) e = Element.new "par" parent << e [:show, :hide].each {|sh| temp = self.send(sh) if temp.length > 0 temp.xaal_serialize(e) end } superclass_serialize(e) end |