Sha256: 5ac66dfed6a099096accaf0d28401103a836f2f41b636a72adeec11e7c3e6778
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
require 'eventmachine' require 'logger' directory = File.dirname(File.absolute_path(__FILE__)) Dir.glob("#{directory}/noder/*.rb") { |file| require file } module Noder class << self def logger @logger ||= Logger.new(STDOUT) end def logger=(logger) @logger = logger end def with(operation, callback=nil, &block) EM.defer(operation, callback || block) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noder-0.0.2 | lib/noder.rb |