Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/git_bpf/lib/git-helpers.rb

Instance Method Summary collapse

Instance Method Details

#shell_listObject



63
64
65
66
# File 'lib/git_bpf/lib/git-helpers.rb', line 63

def shell_list
  cp = dup
  dup.map{ |val| " - #{val}" }.join("\n")
end

#shell_sObject



57
58
59
60
61
# File 'lib/git_bpf/lib/git-helpers.rb', line 57

def shell_s
  cp = dup
  first = cp.shift
  cp.map{ |arg| arg.gsub " ", "\\ " }.unshift(first) * " "
end