Class: Gauge::GaugeMessages Private
- Inherits:
-
Object
- Object
- Gauge::GaugeMessages
- Defined in:
- lib/gauge_messages.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.
Class Method Summary collapse
- .instance ⇒ Object private
Instance Method Summary collapse
- #clear ⇒ Object private
- #get ⇒ Object private
-
#initialize ⇒ GaugeMessages
constructor
private
A new instance of GaugeMessages.
- #pending_messages ⇒ Object private
- #write(message) ⇒ Object private
Constructor Details
#initialize ⇒ GaugeMessages
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 GaugeMessages.
34 35 36 |
# File 'lib/gauge_messages.rb', line 34 def initialize = [] end |
Class Method Details
.instance ⇒ 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.
38 39 40 |
# File 'lib/gauge_messages.rb', line 38 def self.instance ||= GaugeMessages.new end |
Instance Method Details
#clear ⇒ 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.
56 57 58 |
# File 'lib/gauge_messages.rb', line 56 def clear = [] end |
#get ⇒ 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.
52 53 54 |
# File 'lib/gauge_messages.rb', line 52 def get .select { |m| m != nil} end |
#pending_messages ⇒ 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.
42 43 44 45 46 |
# File 'lib/gauge_messages.rb', line 42 def () = .select { |m| m != nil} = [] end |
#write(message) ⇒ 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.
48 49 50 |
# File 'lib/gauge_messages.rb', line 48 def write() .push() end |