Sha256: b8dc6e2b257ccd7c31b51c4a140ec1dda343b3ca5fa56ee50a60ba1ca51910d9

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

module XAIML
  module Element
    class Category < Base
      @allowed_object = [XAIML::Element::Pattern, XAIML::Element::Template, XAIML::Element::That]
      def initialize(attributes = {}, patterns = nil, template = nil)
        super(attributes)
        append_child patterns if patterns
        append_child template if template
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xaiml-0.1.3 lib/xaiml/element/category.rb
xaiml-0.1.2 lib/xaiml/element/category.rb