Class: TextCollector

Inherits:
MessageCollectorProcessed show all
Defined in:
bin/minecraftctlserver

Instance Method Summary collapse

Methods inherited from MessageCollectorProcessed

#collect, #process

Methods inherited from MessageCollector

#collect, #each, for

Constructor Details

#initialize(&operations) ⇒ TextCollector

Returns a new instance of TextCollector.



35
36
37
38
39
40
# File 'bin/minecraftctlserver', line 35

def initialize(&operations)
	super
	process do |msg|
		msg.to_s + "\n"
	end
end