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.


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

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.


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

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.


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

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.


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

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.


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

def update
  @global.update if @global
end