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
commit977981dcb9e1c442efaa53c1f0f6c328f9c5a39f (patch)
tree2089f0f8b555977e2b24936469eac487b149cd98 /Library
parent222283410731bcfd525c356b96b009aca660911a (diff)
downloadbrew-977981dcb9e1c442efaa53c1f0f6c328f9c5a39f.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?