Class: RubyBreaker::TypeDefs::NominalType
- 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
Instance Attribute Summary collapse
-
#mod ⇒ Object
This accessor points to the actual module.
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(mod = nil, *args) ⇒ NominalType
constructor
A new instance of NominalType.
Methods inherited from Type
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
#mod ⇒ Object
This accessor points to the actual module
84 85 86 |
# File 'lib/rubybreaker/type/type.rb', line 84 def mod @mod end |