Method: Controls::Error#inspect

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

#inspectString

Returns a string representing the error and all of it’s attributes.

Returns:

  • (String)

    a string representing the error and all of it’s attributes



26
27
28
29
30
31
32
# File 'lib/controls/objects/error.rb', line 26

def inspect
  vars = to_h.map do |attribute, value|
    "#{attribute}: #{value}"
  end

  "#<#{self.class}: #{vars.join(', ')}>"
end