Module: CMDx::Utils::Normalize
Overview
Provides normalization utilities for a variety of objects into consistent formats.
Instance Method Summary collapse
-
#exception(exception) ⇒ String
Normalizes an exception into a string representation.
-
#statuses(object) ⇒ Array<String>
Normalizes an object into an array of unique status strings.
Instance Method Details
#exception(exception) ⇒ String
Normalizes an exception into a string representation.
22 23 24 |
# File 'lib/cmdx/utils/normalize.rb', line 22 def exception(exception) "[#{exception.class}] #{exception.}" end |