Class: Dao::Errors::Message

Inherits:
String
  • Object
show all
Defined in:
lib/dao/errors.rb

Overview

messages know when they’re sticky

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  options = Map.options_for!(args)
  replace(args.join(' '))
  self.source = options[:source]
end

Instance Attribute Details

#sourceObject

Returns the value of attribute source.



28
29
30
# File 'lib/dao/errors.rb', line 28

def source
  @source
end

Instance Method Details

#to_sObject



36
37
38
# File 'lib/dao/errors.rb', line 36

def to_s
  self
end