Class: Minecraft::MessageQueue::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/minecraft.rb

Direct Known Subclasses

Err, Internal, InternalError, Out

Defined Under Namespace

Classes: Err, Internal, InternalError, Out

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#msgObject (readonly)

Returns the value of attribute msg.



37
38
39
# File 'lib/minecraft.rb', line 37

def msg
  @msg
end

Instance Method Details

#to_sObject



39
40
41
# File 'lib/minecraft.rb', line 39

def to_s
	@msg
end