Sha256: 864fd45f34a5c9fabfec4950e95867209bd00112eb69ee087d8421fbf5f45530

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

module WebIDL
  module ParseTree
    class Dictionary < Treetop::Runtime::SyntaxNode

      def build(parent)
        dict = Ast::Dictionary.new(parent, name.text_value)

        unless members.empty?
          members.build(dict)
        end

        unless inherits.empty?
          dict.inherits = inherits.build(dict)
        end

        dict
      end

    end # Dictionary
  end # ParseTree
end # WebIDL

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webidl-0.1.3 lib/webidl/parse_tree/dictionary.rb