Sha256: 30bd10f287dddd9f05cf2bc59eb4f52522becf2ebeeb95f20d2cc7cfb8445c14
Contents?: true
Size: 492 Bytes
Versions: 10
Compression:
Stored size: 492 Bytes
Contents
module WebIDL module ParseTree class Interface < Treetop::Runtime::SyntaxNode def build(parent) intf = Ast::Interface.new(parent, name.text_value) unless members.empty? members.build(intf) end add_inheritance(parent, intf) intf end def add_inheritance(parent, intf) if inherits.any? intf.inherits = inherits.build(parent) end end end # Interface end # ParseTree end # WebIDL
Version data entries
10 entries across 10 versions & 1 rubygems