Sha256: d0da10dcad3e507c6e61dae02f291ac634d47f2bd7ddc69aef7047adfde345e7

Contents?: true

Size: 401 Bytes

Versions: 12

Compression:

Stored size: 401 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]
      end

      def optional?
        @optional
      end

      def variadic?
        @variadic
      end

    end # Argument
  end # Ast
end # WebIDL

Version data entries

12 entries across 12 versions & 1 rubygems

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