Class: RubyBreaker::TypeDefs::MethodListType

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

Overview

This class represents multiple method types.

Instance Attribute Summary collapse

Attributes inherited from Type

#ctx

Instance Method Summary collapse

Methods inherited from Type

#eql?, #subtype_of?, #unparse

Constructor Details

#initialize(types = [], *args) ⇒ MethodListType

Returns a new instance of MethodListType.



229
230
231
232
# File 'lib/rubybreaker/type/type.rb', line 229

def initialize(types=[],*args)
  super(*args)
  @types = types
end

Instance Attribute Details

#typesObject

This accessor sets/gets the method types.



227
228
229
# File 'lib/rubybreaker/type/type.rb', line 227

def types
  @types
end