Class: StreetFighter::EitherCheck

Inherits:
Struct
  • Object
show all
Defined in:
lib/street_fighter/either_check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



2
3
4
# File 'lib/street_fighter/either_check.rb', line 2

def klass
  @klass
end

Instance Method Details

#run!Object

Raises:

  • (ArgumentError)


3
# File 'lib/street_fighter/either_check.rb', line 3

def run! ; raise ArgumentError unless klass.is_a?(EitherValue) ; end