Class: Skylight::GC::Window Private

Inherits:
Object show all
Defined in:
lib/skylight/gc.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(global) ⇒ Window

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Window.



81
82
83
84
# File 'lib/skylight/gc.rb', line 81

def initialize(global)
  @global = global
  @time = 0
end

Instance Attribute Details

#timeObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



79
80
81
# File 'lib/skylight/gc.rb', line 79

def time
  @time
end

Instance Method Details

#add(time) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



90
91
92
# File 'lib/skylight/gc.rb', line 90

def add(time)
  @time += time
end

#releaseObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



94
95
96
# File 'lib/skylight/gc.rb', line 94

def release
  @global&.release(self)
end

#updateObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



86
87
88
# File 'lib/skylight/gc.rb', line 86

def update
  @global&.update
end