Class: Puppeteer::Page::JavaScriptFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/page.rb

Instance Method Summary collapse

Constructor Details

#initialize(expression, args) ⇒ JavaScriptFunction

Returns a new instance of JavaScriptFunction.



847
848
849
850
# File 'lib/puppeteer/page.rb', line 847

def initialize(expression, args)
  @expression = expression
  @args = args
end

Instance Method Details

#sourceObject



852
853
854
# File 'lib/puppeteer/page.rb', line 852

def source
  "(#{@expression})(#{arguments})"
end