Class: Skylight::Core::GC::Window Private
- Inherits:
-
Object
- Object
- Skylight::Core::GC::Window
- 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
- #time ⇒ Object readonly private
Instance Method Summary collapse
- #add(time) ⇒ Object private
-
#initialize(global) ⇒ Window
constructor
private
A new instance of Window.
- #release ⇒ Object private
- #update ⇒ Object private
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
#time ⇒ Object (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 |
#release ⇒ 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 release @global.release(self) if @global end |
#update ⇒ 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.
94 95 96 |
# File 'lib/skylight/core/gc.rb', line 94 def update @global.update if @global end |