Class: Rocx::Elements::Ruby
- Defined in:
- lib/rocx/elements/ruby.rb
Constant Summary
Constants included from AttributeBuilder
AttributeBuilder::VALID_THEME_COLORS, AttributeBuilder::VALID_TYPES
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#ruby ⇒ Object
Returns the value of attribute ruby.
Attributes inherited from Container
Instance Method Summary collapse
Methods inherited from Container
Methods included from PropertyBuilder
Methods inherited from Element
#name, name, namespace, #namespace, #tag, tag
Methods included from AttributeBuilder
#attributes, included, #render?
Constructor Details
This class inherits a constructor from Rocx::Elements::Container
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
4 5 6 |
# File 'lib/rocx/elements/ruby.rb', line 4 def base @base end |
#ruby ⇒ Object
Returns the value of attribute ruby.
4 5 6 |
# File 'lib/rocx/elements/ruby.rb', line 4 def ruby @ruby end |
Instance Method Details
#to_xml(xml) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/rocx/elements/ruby.rb', line 22 def to_xml(xml) xml[namespace].public_send(tag, xml_attributes) { property_xml(xml) ruby_text_xml(xml) base_text_xml(xml) } end |