Sha256: 81fb64a99fb84d99955c6286d529fcb91a139d0355544961c7fa1bff867a8a26

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

module WebIDL
  module Ast
    class Type < Node

      attr_reader :name

      def initialize(parent, name, opts = {})
        super(parent)

        @name     = name.strip.to_sym
        @nullable = !!opts[:nullable]
      end

      def nullable?
        @nullable
      end

    end # Type
  end # Ast
end # WebIDL

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webidl-0.0.2 lib/webidl/ast/type.rb
webidl-0.0.1 lib/webidl/ast/type.rb