Module: Smartest::StatusReason
- Defined in:
- lib/smartest/errors.rb
Constant Summary collapse
- DEFAULT_REASON =
"No reason given"
Class Method Summary collapse
Class Method Details
.normalize(reason) ⇒ Object
7 8 9 10 |
# File 'lib/smartest/errors.rb', line 7 def self.normalize(reason) text = reason.to_s text.empty? ? DEFAULT_REASON : text end |