Class: Skylight::GC::Window Private
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.
88 89 90 91 |
# File 'lib/skylight/gc.rb', line 88 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.
86 87 88 |
# File 'lib/skylight/gc.rb', line 86 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.
97 98 99 |
# File 'lib/skylight/gc.rb', line 97 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.
101 102 103 |
# File 'lib/skylight/gc.rb', line 101 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.
93 94 95 |
# File 'lib/skylight/gc.rb', line 93 def update @global.update if @global end |