aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-02-26 23:22:22 -0500
committerJack Nagel2015-02-27 20:38:00 -0500
commit7502fe06a51b0d2c54eca37d39d6fc7af3abbd62 (patch)
treee6623cb242236cfda8aeb158e93a05f1d082e6ab /Library
parentc57454d307f949e2dc8b9e3021fbdaa0f59d21ee (diff)
downloadhomebrew-7502fe06a51b0d2c54eca37d39d6fc7af3abbd62.tar.bz2
Remove ivars from default Hardware::CPU methods
These methods are always overridden in the per-OS modules, so let's just provide sensible defaults for documentation purposes.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/hardware.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb
index a49995a88..ec13814cc 100644
--- a/Library/Homebrew/hardware.rb
+++ b/Library/Homebrew/hardware.rb
@@ -8,19 +8,19 @@ class Hardware
PPC_64BIT_ARCHS = [:ppc64].freeze
def type
- @type || :dunno
+ :dunno
end
def family
- @family || :dunno
+ :dunno
end
def cores
- @cores || 1
+ 1
end
def bits
- @bits || 64
+ 64
end
def is_32_bit?