Class: RubyBreaker::TypeDefs::NominalType

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

Overview

This class represents a concrete object like a Numeric or String. It stores the actual module in the instance variable @mod.

Direct Known Subclasses

SelfType

Instance Attribute Summary collapse

Attributes inherited from Type

#ctx

Instance Method Summary collapse

Methods inherited from Type

#eql?, #subtype_of?, #unparse

Constructor Details

#initialize(mod = nil, *args) ⇒ NominalType

Returns a new instance of NominalType.



86
87
88
89
# File 'lib/rubybreaker/type/type.rb', line 86

def initialize(mod=nil,*args)
  super(*args)
  @mod = mod
end

Instance Attribute Details

#modObject

This accessor points to the actual module



84
85
86
# File 'lib/rubybreaker/type/type.rb', line 84

def mod
  @mod
end