Class: Thy::Types::Variant
- Inherits:
-
Object
- Object
- Thy::Types::Variant
- Defined in:
- lib/thy/types/variant.rb
Instance Method Summary collapse
- #check(value) ⇒ Object
-
#initialize(types) ⇒ Variant
constructor
A new instance of Variant.
Constructor Details
#initialize(types) ⇒ Variant
Returns a new instance of Variant.
6 7 8 |
# File 'lib/thy/types/variant.rb', line 6 def initialize(types) @types = types end |