Class: Playwright::JavaScript::ValueParser

Inherits:
Object
  • Object
show all
Defined in:
lib/playwright/javascript/value_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ValueParser

Returns a new instance of ValueParser.



6
7
8
9
# File 'lib/playwright/javascript/value_parser.rb', line 6

def initialize(hash)
  @hash = hash
  @refs = {}
end

Instance Method Details

#parseHash

Returns:

  • (Hash)


12
13
14
15
16
17
18
# File 'lib/playwright/javascript/value_parser.rb', line 12

def parse
  if @hash.nil?
    nil
  else
    parse_hash(@hash)
  end
end