Class: Ludy::Blackhole

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ludy/blackhole.rb

Overview

a blackhole would eat any message it received.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(msg, *args, &block) ⇒ Object



10
11
12
# File 'lib/ludy/blackhole.rb', line 10

def method_missing msg, *args, &block
  self
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/ludy/blackhole.rb', line 13

def nil?
  true
end