Class: Dread::Runner

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

Instance Method Summary collapse

Constructor Details

#initialize(argf) ⇒ Runner

Returns a new instance of Runner.



5
6
7
# File 'lib/dread/runner.rb', line 5

def initialize(argf)
  @argf = argf
end

Instance Method Details

#run!Object



9
10
11
12
13
14
15
16
17
# File 'lib/dread/runner.rb', line 9

def run!
  argf.each_line do |line|
    next if comment?(line)

    t = TraceFactory.build(line)
    puts t
    #t.format_output if t
  end
end