Class: XAIML::Element::Category

Inherits:
Base show all
Defined in:
lib/xaiml/element/category.rb

Instance Attribute Summary

Attributes inherited from Base

#element

Attributes inherited from Document

#document, #element

Instance Method Summary collapse

Methods inherited from Base

#write

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