Class: SmartImage::DeadCanvas

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_image.rb

Overview

After the SmartImage#initialize block completes, the canvas is destroyed and replaced with a DeadCanvas that doesn’t let you do anything

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object

Raises:

  • (ArgumentError)


126
127
128
# File 'lib/smart_image.rb', line 126

def method_missing(*args)
  raise ArgumentError, "your image exists only within the SmartImage.new block"
end