Method: Controls::Error#to_s

Defined in:
lib/controls/objects/error.rb

#to_sString

Returns the error message if available otherwise calls #inspect.

Returns:

  • (String)

    the error message if available otherwise calls #inspect



45
46
47
# File 'lib/controls/objects/error.rb', line 45

def to_s
  @message or inspect
end