class Lingo::LingoError

Public Instance Methods

class_name() click to toggle source
# File lib/lingo/error.rb, line 31
def class_name
  klass.name.split('::').last
end
error(msg = 'An error occurred') click to toggle source
# File lib/lingo/error.rb, line 35
def error(msg = 'An error occurred')
  "#{msg}: #{err} (#{err.class})"
end