diff options
| author | Andre Arko | 2009-09-28 14:10:20 -0700 |
|---|---|---|
| committer | Max Howell | 2009-09-29 23:34:16 +0100 |
| commit | 2459b35e081275987c15d34ca36cf2e472d20b66 (patch) | |
| tree | 57d4761e32e42d38823101735ef99da6163f59f4 /Library | |
| parent | 1f9104bb8bf86aff593857c45166eb3607fcee02 (diff) | |
| download | homebrew-2459b35e081275987c15d34ca36cf2e472d20b66.tar.bz2 | |
eval bad
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index ad6794c1e..ef3674453 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -335,10 +335,10 @@ private end def validate_variable name - v=eval "@#{name}" + v = instance_variable_get("@#{name}") raise "Invalid @#{name}" if v.to_s.empty? or v =~ /\s/ end - + def set_instance_variable(type) if !instance_variable_defined?("@#{type}") class_value = self.class.send(type) |
