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

Class Method Summary collapse

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.



10
11
12
13
14
# File 'lib/xaiml/element/category.rb', line 10

def initialize(attributes = {}, patterns = nil, template = nil)
  super(attributes)
  append_child patterns if patterns
  append_child template if template
end

Class Method Details

.allowed_objectObject



6
7
8
# File 'lib/xaiml/element/category.rb', line 6

def self.allowed_object
  [XAIML::Element::Pattern, XAIML::Element::Template, XAIML::Element::That]
end