Top Level Namespace
Defined Under Namespace
Modules: RPi
Instance Method Summary collapse
Instance Method Details
#rpi? ⇒ Boolean
1 2 3 |
# File 'lib/rpi/environment.rb', line 1 def rpi? `cat /proc/cpuinfo`.include?("Raspberry Pi") end |