Sha256: 3442869a172801893bd37f7d74a9fc1de40ab0f81b2a7c32ac5497f32292aa90
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
require 'class_attribute' module ActionTexter class TestMessage include ClassAttribute cattr_accessor :deliveries self.deliveries = [] def initialize(config = {}) end def deliver(message) self.class.deliveries << message deliveries end def truncate self.class.deliveries = [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action-texter-0.2.1.pre | lib/action_texter/provider/test_message/test_message.rb |