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

Instance Method Details

#debug?Boolean

Returns If current ruby instance run in debug mode.

Returns:

  • (Boolean)

    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

Returns:

  • (True, False)

    result of check



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