Class: Dao::Errors::Message
- Inherits:
-
String
- Object
- String
- Dao::Errors::Message
- Defined in:
- lib/dao/errors.rb
Overview
messages know when they’re sticky
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Message
constructor
A new instance of Message.
- #to_s ⇒ Object
Constructor Details
#initialize(*args) ⇒ Message
Returns a new instance of Message.
30 31 32 33 34 |
# File 'lib/dao/errors.rb', line 30 def initialize(*args) = Map.(args) replace(args.join(' ')) self.source = [:source] end |
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source.
28 29 30 |
# File 'lib/dao/errors.rb', line 28 def source @source end |
Instance Method Details
#to_s ⇒ Object
36 37 38 |
# File 'lib/dao/errors.rb', line 36 def to_s self end |