lib/angry_shell.rb
def to_s
      result = execute
      if result.ok?
        result.stdout.chomp
      else
        ''
      end
    end
# runs the command, returning its `stdout`. If the command doesn't return success, return a blank string.
runs the command, returning its `stdout`. If the command doesn't return success, return a blank string.
runs the command returning its ` stdout ` . If the command doesn ' t return success return a blank string .
def to_s
      result = execute
      if result.ok?
        result.stdout.chomp
      else
        ''
      end
    end
def to_s result = execute if result . ok? result . stdout . chomp else '' end end
runs the command, returning its `stdout`.
runs the command returning its ` stdout ` .