class Memoizable::MethodBuilder::BlockNotAllowedError

Raised when a block is passed to a memoized method

Public Class Methods

new(descendant, method) click to toggle source

Initialize a block not allowed exception

@param [Module] descendant @param [Symbol] method

@api private

Calls superclass method
# File lib/memoizable/method_builder.rb, line 33
def initialize(descendant, method)
  super("Cannot pass a block to #{descendant}##{method}, it is memoized")
end