Ruby library to add Proc#call_with_locals
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
LICENSE
README
Rakefile
call_with_locals.gemspec

README

= call_with_locals
by Kevin Ballard <kevin@sb.org>

== DESCRIPTION

Ads a new method Proc#call_with_locals to call the proc with new locals

== EXAMPLES

  >> proc { x + 1 }.call_with_locals(x => 3)
  => 4

  >> proc { |a| f[a] }.call_with_locals(3, :f => proc { |x| x + 4 })
  => 7