Class: RubyBreaker::TypeDefs::VarLengthType

Inherits:
Type
  • Object
show all
Defined in:
lib/rubybreaker/type/type.rb

Overview

This class represents a variable-length argument type

Instance Attribute Summary collapse

Attributes inherited from Type

#ctx

Instance Method Summary collapse

Methods inherited from Type

#eql?, #subtype_of?, #unparse

Constructor Details

#initialize(type, *args) ⇒ VarLengthType

Returns a new instance of VarLengthType.



205
206
207
208
# File 'lib/rubybreaker/type/type.rb', line 205

def initialize(type,*args)
  super(*args)
  @type = type
end

Instance Attribute Details

#typeObject

This accessor sets/gets the inner type of this variable length argument type.



203
204
205
# File 'lib/rubybreaker/type/type.rb', line 203

def type
  @type
end