Module: StaticTracing::Platform
- Defined in:
- lib/ruby-static-tracing/platform.rb
Overview
Platform detection for ruby-static-tracing
Class Method Summary collapse
-
.darwin? ⇒ Boolean
Returns true if platform is darwin.
-
.linux? ⇒ Boolean
Returns true if platform is linux.
-
.supported_platform? ⇒ Boolean
Returns true if platform is known to be supported.
Class Method Details
.darwin? ⇒ Boolean
Returns true if platform is darwin
14 15 16 |
# File 'lib/ruby-static-tracing/platform.rb', line 14 def darwin? /darwin/.match(RUBY_PLATFORM) end |
.linux? ⇒ Boolean
Returns true if platform is linux
9 10 11 |
# File 'lib/ruby-static-tracing/platform.rb', line 9 def linux? /linux/.match(RUBY_PLATFORM) end |
.supported_platform? ⇒ Boolean
Returns true if platform is known to be supported
19 20 21 |
# File 'lib/ruby-static-tracing/platform.rb', line 19 def supported_platform? linux? || darwin? end |