module StaticTracing::Platform
Platform detection for ruby-static-tracing
Public Instance Methods
darwin?()
click to toggle source
Returns true if platform is darwin
# File lib/ruby-static-tracing/platform.rb, line 13 def darwin? /darwin/.match(RUBY_PLATFORM) end
linux?()
click to toggle source
Returns true if platform is linux
# File lib/ruby-static-tracing/platform.rb, line 8 def linux? /linux/.match(RUBY_PLATFORM) end
supported_platform?()
click to toggle source
Returns true if platform is known to be supported
# File lib/ruby-static-tracing/platform.rb, line 18 def supported_platform? linux? || darwin? end