Class: Ferrum::CyclicObject

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/ferrum/frame/runtime.rb

Overview

Placeholder object substituted for a JavaScript value that couldn't be fully serialized because it contains circular references. It exists only so that #inspect can report the situation instead of the evaluation raising or hanging.

Instance Method Summary collapse

Instance Method Details

#inspectString

Debug representation of the singleton placeholder.

Returns:

  • (String)


18
19
20
# File 'lib/ferrum/frame/runtime.rb', line 18

def inspect
  %(#<#{self.class} JavaScript object that cannot be represented in Ruby>)
end