Module: Bixby::PlatformUtil
Instance Method Summary collapse
- #linux? ⇒ Boolean
- #osx? ⇒ Boolean (also: #darwin?, #mac?)
- #uname ⇒ Object
- #win? ⇒ Boolean (also: #windows?)
Instance Method Details
#linux? ⇒ Boolean
15 16 17 |
# File 'lib/bixby-client/platform_util.rb', line 15 def linux? uname =~ /linux/ end |
#osx? ⇒ Boolean Also known as: darwin?, mac?
9 10 11 |
# File 'lib/bixby-client/platform_util.rb', line 9 def osx? uname =~ /darwin/ end |
#uname ⇒ Object
5 6 7 |
# File 'lib/bixby-client/platform_util.rb', line 5 def uname RUBY_PLATFORM end |
#win? ⇒ Boolean Also known as: windows?
19 20 21 |
# File 'lib/bixby-client/platform_util.rb', line 19 def win? end |