Skip to content

Commit

Permalink
Executable: attr_readers > ivar access
Browse files Browse the repository at this point in the history
  • Loading branch information
chastell committed Sep 21, 2012
1 parent c612ac6 commit 6969e20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/wiresnark/executable.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ def initialize args = ARGV
end end


def run opts = { runner: Runner.new } def run opts = { runner: Runner.new }
case @command case command
when 'run' when 'run'
opts[:runner].run @args.first opts[:runner].run @args.first
end end
end end

private

attr_reader :command
end end end end

0 comments on commit 6969e20

Please sign in to comment.