Class: Memoizable::MethodBuilder::BlockNotAllowedError

### Home Classes Methods

### In Files

- lib/memoizable/method_builder.rb

### Parent

ArgumentError

### Methods

- ::new

### Class/Module Index

Quicksearch

- Memoizable
- Memoizable::InstanceMethods
- Memoizable::Memory
- Memoizable::MethodBuilder
- Memoizable::MethodBuilder::BlockNotAllowedError
- Memoizable::MethodBuilder::InvalidArityError
- Memoizable::ModuleMethods

No matching classes.

# 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

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.