Sha256: d769e64510f27e0f8d3492b9ec4a9b5126caf6d329e84995efc772df7a39522f

Contents?: true

Size: 239 Bytes

Versions: 15

Compression:

Stored size: 239 Bytes

Contents

require 'ludy/blackhole'

module Kernel
  # it simply return self, see NilClass#ergo
  def ergo
    self
  end
end

class NilClass
  # return blackhole to eat any message, see Kernel#ergo
  def ergo
    Ludy::Blackhole.instance
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
godfat-ludy-0.1.13 lib/ludy/kernel/ergo.rb
ludy-0.1.15 lib/ludy/kernel/ergo.rb
ludy-0.1.0 lib/ludy/kernel/ergo.rb
ludy-0.1.10 lib/ludy/kernel/ergo.rb
ludy-0.1.11 lib/ludy/kernel/ergo.rb
ludy-0.1.13 lib/ludy/kernel/ergo.rb
ludy-0.1.1 lib/ludy/kernel/ergo.rb
ludy-0.1.2 lib/ludy/kernel/ergo.rb
ludy-0.1.6 lib/ludy/kernel/ergo.rb
ludy-0.1.5 lib/ludy/kernel/ergo.rb
ludy-0.1.3 lib/ludy/kernel/ergo.rb
ludy-0.1.4 lib/ludy/kernel/ergo.rb
ludy-0.1.7 lib/ludy/kernel/ergo.rb
ludy-0.1.8 lib/ludy/kernel/ergo.rb
ludy-0.1.9 lib/ludy/kernel/ergo.rb