Class: XAIML::Element::Category
- Defined in:
- lib/xaiml/element/category.rb
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Document
Class Method Summary collapse
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.
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_object ⇒ Object
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 |