Exception: Spacebunny::BlockRequired

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/spacebunny/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ BlockRequired

Returns a new instance of BlockRequired.



17
18
19
20
# File 'lib/spacebunny/exceptions.rb', line 17

def initialize(message = nil)
  message = message || 'block missing. Please provide a block'
  super(message)
end