Class: StubHarvester

Inherits:
Harvester show all
Defined in:
lib/LRH.rb

Instance Method Summary collapse

Methods inherited from Harvester

#_harvest, #_result

Methods inherited from IOAble

#debug!, #debug?, #get_option, #halt!, #job=, #log, #set_option

Constructor Details

#initializeStubHarvester



313
314
315
# File 'lib/LRH.rb', line 313

def initialize
    @result = ""
end

Instance Method Details

#harvest(partial) ⇒ Object



317
318
319
# File 'lib/LRH.rb', line 317

def harvest(partial)
    @result += partial.to_s + "\n"
end

#resultObject



321
322
323
# File 'lib/LRH.rb', line 321

def result
    return @result
end