line = “cd ..”“ line = ”pwd“ line = ”ls“
5 6 7 8 9 10 11 12 13 14
# File 'lib/rundoc/code_command/bash.rb', line 5 def initialize(line) @line = line @contents = "" @delegate = case @line.split(" ").first.downcase when "cd" Cd.new(@line) else false end end