aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cvs2svn.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-19 20:45:58 -0600
committerJack Nagel2013-01-21 17:24:11 -0600
commit8bb496febfec16a78336fc40eac81c758ac669c6 (patch)
treece2e8b764347032daaa9ad8437fe9bd152c40ceb /Library/Formula/cvs2svn.rb
parentcfdc7efef925411efad291be5c6739979682b3b3 (diff)
downloadhomebrew-8bb496febfec16a78336fc40eac81c758ac669c6.tar.bz2
Object#instance_exec for Ruby 1.8.6
Not thread safe! But I don't think we care. We want to evaluate the env DSL block in the context of ENV for asthetic reasons, but we also want access to methods on the requirement instance. We can use #instance_exec to pass the requirement itself into the block: class Foo < Requirement env do |req| append 'PATH', req.some_path end def some_path which 'something' end end Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
Diffstat (limited to 'Library/Formula/cvs2svn.rb')
0 files changed, 0 insertions, 0 deletions