Class: Picobox::Os::CurrentOs
- Inherits:
-
Object
- Object
- Picobox::Os::CurrentOs
- Defined in:
- lib/picobox/os/current_os.rb
Class Method Summary collapse
Class Method Details
.get ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/picobox/os/current_os.rb', line 5 def get os = TTY::Platform.new.os case os when 'darwin' then Darwin when 'linux' then Linux else UnsupportedOs end end |