Class: Minecraft::MessageQueue::Message
- Inherits:
-
Object
- Object
- Minecraft::MessageQueue::Message
- Defined in:
- lib/minecraft.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Err, Internal, InternalError, Out
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(msg) ⇒ Message
constructor
A new instance of Message.
- #to_s ⇒ Object
Constructor Details
#initialize(msg) ⇒ Message
Returns a new instance of Message.
33 34 35 |
# File 'lib/minecraft.rb', line 33 def initialize(msg) @msg = msg end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
37 38 39 |
# File 'lib/minecraft.rb', line 37 def msg @msg end |
Instance Method Details
#to_s ⇒ Object
39 40 41 |
# File 'lib/minecraft.rb', line 39 def to_s @msg end |