Class: Minecraft::MessageQueue::Message::Err
- Inherits:
-
Minecraft::MessageQueue::Message
- Object
- Minecraft::MessageQueue::Message
- Minecraft::MessageQueue::Message::Err
- Defined in:
- lib/minecraft.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Attributes inherited from Minecraft::MessageQueue::Message
Instance Method Summary collapse
-
#initialize(line) ⇒ Err
constructor
A new instance of Err.
Methods inherited from Minecraft::MessageQueue::Message
Constructor Details
#initialize(line) ⇒ Err
Returns a new instance of Err.
62 63 64 65 66 |
# File 'lib/minecraft.rb', line 62 def initialize(line) x, @time, @level, msg = *line.match(/^([^ ]* [^ ]*) \[([^\]]*)\] (.*)/) msg = line unless @time and @level and msg super(msg) end |
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
68 69 70 |
# File 'lib/minecraft.rb', line 68 def level @level end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
68 69 70 |
# File 'lib/minecraft.rb', line 68 def time @time end |