Class: XAIML::Element::Category
- Defined in:
- lib/xaiml/element/category.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Document
Instance Method Summary collapse
-
#initialize(attributes = {}, patterns = nil, template = nil) ⇒ Category
constructor
A new instance of Category.
Methods inherited from Base
Methods inherited from Document
#allowed_object?, #append_child, #append_into, load_file, #prepend_child, #write
Constructor Details
#initialize(attributes = {}, patterns = nil, template = nil) ⇒ Category
Returns a new instance of Category.
5 6 7 8 9 |
# File 'lib/xaiml/element/category.rb', line 5 def initialize(attributes = {}, patterns = nil, template = nil) super(attributes) append_child patterns if patterns append_child template if template end |