Class: Orange::Ignore

Inherits:
Object show all
Defined in:
lib/orange-core/magick.rb

Overview

This class acts as a simple sink for ignoring messages, it will return itself for any message call. Orange::Core can optionally return this when trying to access resources so that you can make method calls to a resource that might not be really there. It will silently swallow any errors that might arrise, so this should be used with caution.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



143
144
145
# File 'lib/orange-core/magick.rb', line 143

def method_missing(name, *args, &block)
  return self
end

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


141
# File 'lib/orange-core/magick.rb', line 141

def blank?; true; end

#include?(*args) ⇒ Boolean

Returns:

  • (Boolean)


142
# File 'lib/orange-core/magick.rb', line 142

def include?(*args); false; end