Sha256: c885e120b774f26927e46469183ff3b3ccbfa32ac9a5f05b67ffccf27a1c58ba

Contents?: true

Size: 409 Bytes

Versions: 12

Compression:

Stored size: 409 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

        unless inherits.empty?
          intf.inherits = inherits.build(parent)
        end

        intf
      end

    end # Interface
  end # ParseTree
end # WebIDL

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
webidl-0.1.2 lib/webidl/parse_tree/interface.rb
webidl-0.1.1 lib/webidl/parse_tree/interface.rb
webidl-0.1.0 lib/webidl/parse_tree/interface.rb
webidl-0.0.9 lib/webidl/parse_tree/interface.rb
webidl-0.0.8 lib/webidl/parse_tree/interface.rb
webidl-0.0.7 lib/webidl/parse_tree/interface.rb
webidl-0.0.6 lib/webidl/parse_tree/interface.rb
webidl-0.0.5 lib/webidl/parse_tree/interface.rb
webidl-0.0.4 lib/webidl/parse_tree/interface.rb
webidl-0.0.3 lib/webidl/parse_tree/interface.rb
webidl-0.0.2 lib/webidl/parse_tree/interface.rb
webidl-0.0.1 lib/webidl/parse_tree/interface.rb