Class: Dao::Errors::Message
- Inherits:
-
String
- Object
- String
- Dao::Errors::Message
- Defined in:
- lib/dao/errors.rb
Overview
string message support class - knows when it’s sticky…
Instance Attribute Summary collapse
-
#sticky ⇒ Object
Returns the value of attribute sticky.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Message
constructor
A new instance of Message.
- #sticky? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#sticky ⇒ Object
Returns the value of attribute sticky.
21 22 23 |
# File 'lib/dao/errors.rb', line 21 def sticky @sticky end |
Instance Method Details
#sticky? ⇒ Boolean
29 30 31 32 |
# File 'lib/dao/errors.rb', line 29 def sticky? @sticky ||= nil !!@sticky end |
#to_s ⇒ Object
34 35 36 |
# File 'lib/dao/errors.rb', line 34 def to_s self end |