Sha256: 17ff802da05a7d74cf91cb03e529256a81ea9eeb334ed5f1156f29f5fa9185c8

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

module Dummer
  class Generator
    class MessageMode < AbstractMode
      def self.message_proc(message)
        message = "#{message.chomp}\n"
        Proc.new { message }
      end

      def self.record_proc(message)
        # ToDo: implement parser
        message_proc = message_proc(message)
        Proc.new { { "message" => message_proc.call } }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dummer-0.4.1 lib/dummer/generator/message_mode.rb
dummer-0.4.0 lib/dummer/generator/message_mode.rb