Class: CuffSert::Message
- Inherits:
-
Object
- Object
- CuffSert::Message
- Defined in:
- lib/cuffsert/messages.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #===(other) ⇒ Object
- #as_observable ⇒ Object
-
#initialize(message) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message) ⇒ Message
Returns a new instance of Message.
7 8 9 |
# File 'lib/cuffsert/messages.rb', line 7 def initialize() = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/cuffsert/messages.rb', line 5 def end |
Instance Method Details
#===(other) ⇒ Object
11 12 13 14 |
# File 'lib/cuffsert/messages.rb', line 11 def ===(other) # For the benefit of value_matches? and regex other.is_a?(self.class) && (other. === || === other.) end |
#as_observable ⇒ Object
16 17 18 |
# File 'lib/cuffsert/messages.rb', line 16 def as_observable Rx::Observable.just(self) end |