Class: StreetFighter::EitherCheck
- Inherits:
-
Struct
- Object
- Struct
- StreetFighter::EitherCheck
- Defined in:
- lib/street_fighter/either_check.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
Returns the value of attribute klass.
Instance Method Summary collapse
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass
2 3 4 |
# File 'lib/street_fighter/either_check.rb', line 2 def klass @klass end |
Instance Method Details
#run! ⇒ Object
3 |
# File 'lib/street_fighter/either_check.rb', line 3 def run! ; raise ArgumentError unless klass.is_a?(EitherValue) ; end |