diff options
| author | Jack Nagel | 2013-03-12 00:38:52 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-12 00:38:52 -0500 |
| commit | 79a67fd097f7e998ed29bad9c98174a82fec4da6 (patch) | |
| tree | 2145919fbabd65263a9a30991cdd19c095a29d64 /Library/Homebrew/formula.rb | |
| parent | 6197eae3d4eefd621c857773020c0c2a05e1674b (diff) | |
| download | brew-79a67fd097f7e998ed29bad9c98174a82fec4da6.tar.bz2 | |
Pass filename and lineno arguments to class_eval
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0a1847fa5..2186b4a74 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -667,11 +667,11 @@ private def self.attr_rw(*attrs) attrs.each do |attr| - class_eval %Q{ + class_eval <<-EOS, __FILE__, __LINE__ + 1 def #{attr}(val=nil) val.nil? ? @#{attr} : @#{attr} = val end - } + EOS end end @@ -679,7 +679,7 @@ private attr_rw :plist_startup, :plist_manual Checksum::TYPES.each do |cksum| - class_eval %Q{ + class_eval <<-EOS, __FILE__, __LINE__ + 1 def #{cksum}(val=nil) unless val.nil? @stable ||= SoftwareSpec.new @@ -687,7 +687,7 @@ private end return @stable ? @stable.#{cksum} : @#{cksum} end - } + EOS end def build |
