Sha256: caadce6fc6bdd3699a7c5957b9949444866d91b809d13b66f788a416ea2b3421
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
class Out class << self def out(msg) m = msg puts m msgs << m end def reset @msgs = [] end def msgs @msgs.flatten! if @msgs.respond_to?(:flatten!) @msgs = [] if @msgs and @msgs.length > 999 @msgs ||= [] end #class Msg # def initialize(msg) # @msg = msg # end # # def to_s # @msg # end #end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.1 | lib/ro_commands/helpers/out.rb |