Module: OnlyofficeWebdriverWrapper::RubyHelper
- Included in:
- HeadlessHelper, WebDriver
- Defined in:
- lib/onlyoffice_webdriver_wrapper/helpers/headless_helper/ruby_helper.rb
Overview
Module for check ruby info
Instance Method Summary collapse
-
#debug? ⇒ Boolean
If current ruby instance run in debug mode.
-
#os_64_bit? ⇒ True, False
Check if current os is 64 bit.
Instance Method Details
#debug? ⇒ Boolean
Returns If current ruby instance run in debug mode.
7 8 9 |
# File 'lib/onlyoffice_webdriver_wrapper/helpers/headless_helper/ruby_helper.rb', line 7 def debug? ENV['RUBYLIB'].to_s.include?('ruby-debug') end |
#os_64_bit? ⇒ True, False
Check if current os is 64 bit
13 14 15 |
# File 'lib/onlyoffice_webdriver_wrapper/helpers/headless_helper/ruby_helper.rb', line 13 def os_64_bit? RUBY_PLATFORM.include?('_64') end |