Class: RubyBreaker::TypeDefs::OptionalType
- Defined in:
- lib/rubybreaker/type/type.rb
Overview
This class respresents an optional argument type
Instance Attribute Summary collapse
-
#type ⇒ Object
This accessor sets/gets the inner type of this optional type.
Attributes inherited from Type
Instance Method Summary collapse
-
#initialize(type, *args) ⇒ OptionalType
constructor
A new instance of OptionalType.
Methods inherited from Type
Constructor Details
#initialize(type, *args) ⇒ OptionalType
Returns a new instance of OptionalType.
192 193 194 195 |
# File 'lib/rubybreaker/type/type.rb', line 192 def initialize(type,*args) super(*args) @type = type end |
Instance Attribute Details
#type ⇒ Object
This accessor sets/gets the inner type of this optional type.
190 191 192 |
# File 'lib/rubybreaker/type/type.rb', line 190 def type @type end |