diff options
| author | Jack Nagel | 2013-01-19 20:45:58 -0600 | 
|---|---|---|
| committer | Jack Nagel | 2013-01-21 17:24:12 -0600 | 
| commit | b48e89cbb2a14a935626c64f5e19044bc2b08d85 (patch) | |
| tree | f04776f4f9052aa47145eb2f9bcf1c3e2fb4e450 /Library/Formula/cvs2svn.rb | |
| parent | 3f1eb3d18a417589f91c6aee4effe750440e2adc (diff) | |
| download | homebrew-b48e89cbb2a14a935626c64f5e19044bc2b08d85.tar.bz2 | |
Allow satisfied? to be specified in a block
Instead of overriding #satisfied?, Requirement subclasses can specify
the condition in a block:
  satisfy do
    some_condition?
  end
The contents of the block are evaluated in the context of the instance,
and so have access to instance variables and instance methods as before.
Additionally, it is wrapped in an ENV.with_build_environment block. This
can be disabled by passing :build_env => false to satisfy:
  satisfy :build_env => false do
    some_condition?
  end
Diffstat (limited to 'Library/Formula/cvs2svn.rb')
0 files changed, 0 insertions, 0 deletions
