Module: StaticTracing::Platform
Instance Method Summary collapse
Instance Method Details
#darwin? ⇒ Boolean
11 12 13 |
# File 'lib/ruby-static-tracing/platform.rb', line 11 def darwin? /darwin/.match(RUBY_PLATFORM) end |
#linux? ⇒ Boolean
7 8 9 |
# File 'lib/ruby-static-tracing/platform.rb', line 7 def linux? /linux/.match(RUBY_PLATFORM) end |
#supported_platform? ⇒ Boolean
15 16 17 |
# File 'lib/ruby-static-tracing/platform.rb', line 15 def supported_platform? linux? || darwin? end |