class StrategyInterface

Public Instance Methods

convert_temperature(convert_to, temperature) click to toggle source

In ruby we really don't need this interface at all. Ruby will throw a NoMethod error if a method doesn't exist which is essentially what I am doing here. For sake of sticking to the GOF implementation I will use this class and method as an interface.

# File lib/temperature_converter/strategy_interface.rb, line 9
def convert_temperature(convert_to, temperature)
  raise AbstractMethodError
end