Class: Ferrum::CyclicObject

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

Overview

Placeholder substituted for a reference back to a JavaScript object that contains it, e.g. a.self = a, so that the result stays a finite Ruby Hash or Array.

Instance Method Summary collapse

Instance Method Details

#inspect ⇒ String

Debug representation of the singleton placeholder.

Returns:

  • (String)


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

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