hopsoft/ellington

View on GitHub
examples/math_trick/stations/subtract_station.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SubtractStation < Ellington::Station

  def engage(wrapped_number)
    wrapped_number.first_subtract = wrapped_number.value - wrapped_number.first_reverse
  end

end