Class: Skylight::Core::GC::Window Private

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/core/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.



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

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.



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

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.



102
103
104
# File 'lib/skylight/core/gc.rb', line 102

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.



106
107
108
# File 'lib/skylight/core/gc.rb', line 106

def release
  @global.release(self) if @global
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.



98
99
100
# File 'lib/skylight/core/gc.rb', line 98

def update
  @global.update if @global
end