Class: EchoMsg
- Inherits:
-
Object
- Object
- EchoMsg
- Defined in:
- src/ruby/spec/support/services.rb
Overview
A test message
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(msg: '') ⇒ EchoMsg
constructor
A new instance of EchoMsg.
Constructor Details
#initialize(msg: '') ⇒ EchoMsg
Returns a new instance of EchoMsg.
22 23 24 |
# File 'src/ruby/spec/support/services.rb', line 22 def initialize(msg: '') @msg = msg end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
20 21 22 |
# File 'src/ruby/spec/support/services.rb', line 20 def msg @msg end |
Class Method Details
.marshal(o) ⇒ Object
26 27 28 |
# File 'src/ruby/spec/support/services.rb', line 26 def self.marshal(o) o.msg end |
.unmarshal(msg) ⇒ Object
30 31 32 |
# File 'src/ruby/spec/support/services.rb', line 30 def self.unmarshal(msg) EchoMsg.new(msg: msg) end |