class OpenRAReplay::NotAnOrder
Attributes
special_command[R]
Public Class Methods
construct(input, char, special_command)
click to toggle source
# File lib/openrareplay/order/notanorder.rb, line 32 def self.construct(input, char, special_command) new( command: char, data: input.read, special_command: special_command ) end
new(*args)
click to toggle source
Calls superclass method
# File lib/openrareplay/order/notanorder.rb, line 27 def initialize(*args) @unknown = !!args.last[:special_command] super(*args) end
Public Instance Methods
order?()
click to toggle source
# File lib/openrareplay/order/notanorder.rb, line 48 def order? false end
serialize()
click to toggle source
# File lib/openrareplay/order/notanorder.rb, line 40 def serialize (command + data) end
special_command?()
click to toggle source
# File lib/openrareplay/order/notanorder.rb, line 44 def special_command? special_command end