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.
This commit is contained in:
parent
2222834107
commit
977981dcb9
@ -8,19 +8,19 @@ class Hardware
|
|||||||
PPC_64BIT_ARCHS = [:ppc64].freeze
|
PPC_64BIT_ARCHS = [:ppc64].freeze
|
||||||
|
|
||||||
def type
|
def type
|
||||||
@type || :dunno
|
:dunno
|
||||||
end
|
end
|
||||||
|
|
||||||
def family
|
def family
|
||||||
@family || :dunno
|
:dunno
|
||||||
end
|
end
|
||||||
|
|
||||||
def cores
|
def cores
|
||||||
@cores || 1
|
1
|
||||||
end
|
end
|
||||||
|
|
||||||
def bits
|
def bits
|
||||||
@bits || 64
|
64
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_32_bit?
|
def is_32_bit?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user