Module: Methodphitamine

Defined in:
lib/methodphitamine/it_class.rb,
lib/methodphitamine/version.rb

Overview

This module contains an It class which queues any methods called on it and can be converted into a Proc. The Proc it generates executes the queued methods in the order received on the argument passed to the block, allowing something like the following:

(1..10).select &it % 2 == 0

For more examples, see methodphitamine.rubyforge.org.

Defined Under Namespace

Classes: It, MethodphitamineMaybe

Constant Summary collapse

VERSION =
"1.0.1"