Class: RubyBreaker::TypeDefs::OrType
- Defined in:
- lib/rubybreaker/type/type.rb
Overview
This class represents one of many types
Instance Attribute Summary collapse
-
#types ⇒ Object
This accessor sets/gets the inner types of this “or” type.
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(types = [], *args) ⇒ OrType
constructor
A new instance of OrType.
Methods inherited from Type
Constructor Details
#initialize(types = [], *args) ⇒ OrType
Returns a new instance of OrType.
217 218 219 220 |
# File 'lib/rubybreaker/type/type.rb', line 217 def initialize(types=[],*args) super(*args) @types = types end |
Instance Attribute Details
#types ⇒ Object
This accessor sets/gets the inner types of this “or” type.
215 216 217 |
# File 'lib/rubybreaker/type/type.rb', line 215 def types @types end |