W3cubDocs

/Padrino

Module: Padrino::Performance::OS

Overview

OS detection useful for targeting CLI commands. Source: stackoverflow.com/questions/170956/how-can-i-find-which-operating-system-my-ruby-program-is-running-on

Class Method Summary

Class Method Details

.linux? ⇒ Boolean

Returns:

  • (Boolean)

.mac? ⇒ Boolean

Returns:

  • (Boolean)

.unix? ⇒ Boolean

Returns:

  • (Boolean)

.windows? ⇒ Boolean

Returns:

  • (Boolean)

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Performance/OS