lib/webidl/ast/interface.rb in webidl-0.1.2 vs lib/webidl/ast/interface.rb in webidl-0.1.3
- old
+ new
@@ -5,20 +5,29 @@
def self.list
@list ||= {}
end
attr_reader :name
- attr_accessor :extended_attributes, :members, :inherits, :implements
+ attr_accessor :extended_attributes,
+ :members,
+ :inherits,
+ :implements,
+ :partial
def initialize(parent, name)
super(parent)
@name = name
@members = []
@inherits = []
@implements = []
@extended_attributes = []
+ @partial = false
end
- end
+ def partial?
+ @partial
+ end
+
+ end # Interface
end # Ast
end # WebIDL
\ No newline at end of file