Class: Playwright::JavaScript::ValueParser
- Inherits:
-
Object
- Object
- Playwright::JavaScript::ValueParser
- Defined in:
- lib/playwright/javascript/value_parser.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ ValueParser
constructor
A new instance of ValueParser.
- #parse ⇒ Hash
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
#parse ⇒ 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 |