class Lingo::LingoError
Public Instance Methods
class_name()
click to toggle source
# File lib/lingo/error.rb, line 30 def class_name klass.name.split('::').last end
error(msg = 'An error occurred')
click to toggle source
# File lib/lingo/error.rb, line 34 def error(msg = 'An error occurred') res = ["#{msg}: #{err} (#{err.class})"] res.concat(err.backtrace) if $VERBOSE res.join("\n. . . . ") end