Method: Dao::Messages#method_missing

Defined in:
lib/dao/messages.rb

#method_missing(method, *args, &block) ⇒ Object



97
98
99
100
101
102
103
104
105
# File 'lib/dao/messages.rb', line 97

def method_missing(method, *args, &block)
  if block.nil?
    type = method.to_s
    message = args.join
    add(message, type)
  else
    super
  end
end