Class: Puppeteer::Page::JavaScriptFunction
- Inherits:
-
Object
- Object
- Puppeteer::Page::JavaScriptFunction
- Defined in:
- lib/puppeteer/page.rb
Instance Method Summary collapse
-
#initialize(expression, args) ⇒ JavaScriptFunction
constructor
A new instance of JavaScriptFunction.
- #source ⇒ Object
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
#source ⇒ Object
852 853 854 |
# File 'lib/puppeteer/page.rb', line 852 def source "(#{@expression})(#{arguments})" end |