module WebIDL module Ast class Argument < Node attr_reader :name, :type def initialize(name, type, opts = {}) @name = name @type = type @optional = !!opts[:optional] @variadic = !!opts[:variadic] @extended_attributes = opts[:extended_attributes] || [] end def optional? @optional end def variadic? @variadic end end # Argument end # Ast end # WebIDL