module ProductionBreakpoints::Platform
Platform
detection for ruby-static-tracing
Public Instance Methods
darwin?()
click to toggle source
Returns true if platform is darwin
# File lib/ruby-production-breakpoints/platform.rb, line 14 def darwin? /darwin/.match(RUBY_PLATFORM) end
linux?()
click to toggle source
Returns true if platform is linux
# File lib/ruby-production-breakpoints/platform.rb, line 9 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-production-breakpoints/platform.rb, line 19 def supported_platform? linux? || darwin? end