class RxRuby::OnCompletedNotification

Represents an on_completed notification to an observer.

Public Class Methods

new() click to toggle source
# File lib/rx_ruby/core/notification.rb, line 141
def initialize
  @kind = :on_completed
end

Public Instance Methods

==(other) click to toggle source
# File lib/rx_ruby/core/notification.rb, line 145
def ==(other)
  other.class == self.class && other.on_completed?
end
Also aliased as: eql?
accept(observer) click to toggle source

Invokes the observer’s method corresponding to the notification.

# File lib/rx_ruby/core/notification.rb, line 155
def accept(observer)
  observer.on_completed
end
eql?(other)
Alias for: ==
to_s() click to toggle source
# File lib/rx_ruby/core/notification.rb, line 150
def to_s
  "on_completed()"
end