Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/git_bpf/lib/git-helpers.rb
Instance Method Summary collapse
Instance Method Details
#shell_list ⇒ Object
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_s ⇒ Object
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 |