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
# File 'lib/playwright/javascript/value_parser.rb', line 6

def initialize(hash)
  @hash = hash
end

Instance Method Details

#parseHash

Returns:

  • (Hash)


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

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