diff options
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 43d8ea900..80826237a 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -6,19 +6,12 @@ end class CompilerFailure attr_reader :compiler + attr_rw :build, :cause def initialize compiler, &block @compiler = compiler instance_eval(&block) if block_given? - @build ||= 9999 - end - - def build val=nil - val.nil? ? @build.to_i : @build = val.to_i - end - - def cause val=nil - val.nil? ? @cause : @cause = val + @build = (@build || 9999).to_i end end |
