jarib/webidl

View on GitHub
lib/webidl/ast/dictionary.rb

Summary

Maintainability
A
0 mins
Test Coverage
module WebIDL
  module Ast
    class Dictionary < Node

      def self.list
        @list ||= {}
      end

      attr_reader :name
      attr_accessor :extended_attributes,
                    :members,
                    :inherits,
                    :partial

      def initialize(parent, name)
        super(parent)

        @name                = name
        @members             = []
        @inherits            = []
        @implements          = []
        @extended_attributes = []
        @partial             = false
      end

      def partial?
        @partial
      end

    end # Dictionary
  end # Ast
end # WebIDL