lib/webidl/parse_tree/interface.rb in webidl-0.1.3 vs lib/webidl/parse_tree/interface.rb in webidl-0.1.4
- old
+ new
@@ -7,21 +7,19 @@
unless members.empty?
members.build(intf)
end
- unless inherits.empty?
- intf.inherits = inherits.build(parent)
- end
+ add_inheritance(parent, intf)
intf
end
- end # Interface
-
- class PartialInterface < Interface
- def partial?
- true
+ def add_inheritance(parent, intf)
+ if inherits.any?
+ intf.inherits = inherits.build(parent)
+ end
end
- end
+
+ end # Interface
end # ParseTree
end # WebIDL
\ No newline at end of file