Sha256: 6d91cb1d600d217653c3a92e19377eeeb56d7b9add9cbcbbf98d83cbf82543ed

Contents?: true

Size: 259 Bytes

Versions: 1

Compression:

Stored size: 259 Bytes

Contents

require 'amun/event_manager'
require 'amun/buffer'

def log(event)
  # log valid strings only no control characters
  event = event.encode!('UTF-8', 'UTF-8', invalid: :replace)
  Amun::Buffer.messages << "#{event}\n"
end
Amun::EventManager.bind_all nil, :log

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amun-0.2.0 lib/amun/features/echo_event.rb