Sha256: 413357ac9b22de11e7ab04ceb0469ac8dc4caf25c4727f143047881e7f7bf0b3

Contents?: true

Size: 465 Bytes

Versions: 11

Compression:

Stored size: 465 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
webidl-0.2.2 lib/webidl/ast/argument.rb
webidl-0.2.1 lib/webidl/ast/argument.rb
webidl-0.1.10 lib/webidl/ast/argument.rb
webidl-0.2.0 lib/webidl/ast/argument.rb
webidl-0.1.9 lib/webidl/ast/argument.rb
webidl-0.1.8 lib/webidl/ast/argument.rb
webidl-0.1.7 lib/webidl/ast/argument.rb
webidl-0.1.6 lib/webidl/ast/argument.rb
webidl-0.1.5 lib/webidl/ast/argument.rb
webidl-0.1.4 lib/webidl/ast/argument.rb
webidl-0.1.3 lib/webidl/ast/argument.rb