Class: Puppeteer::Launcher::ChromeArgOptions
- Inherits:
-
Object
- Object
- Puppeteer::Launcher::ChromeArgOptions
- Defined in:
- lib/puppeteer/launcher/chrome_arg_options.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#user_data_dir ⇒ Object
readonly
Returns the value of attribute user_data_dir.
Instance Method Summary collapse
- #devtools? ⇒ Boolean
- #headless? ⇒ Boolean
-
#initialize(options) ⇒ ChromeArgOptions
constructor
-
@property boolean= headless * @property Array<string>= args * @property string= userDataDir * @property boolean= devtools.
-
Constructor Details
#initialize(options) ⇒ ChromeArgOptions
-
@property boolean= headless
-
@property Array<string>= args
-
@property string= userDataDir
-
@property boolean= devtools
29 30 31 32 33 34 35 36 37 |
# File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 29 def initialize() @args = [:args] || [] @user_data_dir = [:user_data_dir] @devtools = [:devtools] || false @headless = [:headless] if @headless.nil? @headless = !@devtools end end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
39 40 41 |
# File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 39 def args @args end |
#user_data_dir ⇒ Object (readonly)
Returns the value of attribute user_data_dir.
39 40 41 |
# File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 39 def user_data_dir @user_data_dir end |
Instance Method Details
#devtools? ⇒ Boolean
45 46 47 |
# File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 45 def devtools? @devtools end |
#headless? ⇒ Boolean
41 42 43 |
# File 'lib/puppeteer/launcher/chrome_arg_options.rb', line 41 def headless? @headless end |