class Converty::UnitError

Thrown when a non-existant unit type is passed into the from and/or to param when converting.

Public Class Methods

new(units) click to toggle source
Calls superclass method
# File lib/converty.rb, line 23
def initialize(units)
  message = units.map { |u| "#{u} is an invalid unit" }.join(", ")
  super(message)
end