Method: String#runnable
- Defined in:
- lib/core/string.rb
#runnable(quite = true) ⇒ Object
20 21 22 23 |
# File 'lib/core/string.rb', line 20 def runnable(quite=true) # map {|l| l << "#{" >/dev/null 2>/dev/null" if quite}" }. self.strip.split(/\n/).join(" && ") end |