module RJR::HasMessages
Mixin adding methods allowing developer to define performatted messages on a class. After they are defined they may be retrieved, manipulated, and sent to the server at any time
Public Class Methods
included(base)
click to toggle source
# File lib/rjr/util/has_messages.rb, line 12 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
define_message(name, &bl)
click to toggle source
Wrapper around HasMessages#message
# File lib/rjr/util/has_messages.rb, line 17 def define_message(name, &bl) self.class.message(name, bl.call) end