Sha256: cade814b579e55eed30a42f3f8a456b1052ac3b71eb3b51ebab8425fdb161c73

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module XAIML
  module Element
    class Category < Base
      @allowed_object = [XAIML::Element::Pattern, XAIML::Element::Template]
      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.1 lib/xaiml/element/category.rb
xaiml-0.1.0 lib/xaiml/element/category.rb