Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/thru.rb

Instance Method Summary collapse

Instance Method Details

#thru(*command) ⇒ Object Also known as: |



6
7
8
9
10
# File 'lib/thru.rb', line 6

def thru(*command)
  stdout, status = Open3.capture2(*command, stdin_data: self)
  raise "#{status}" unless status == 0
  stdout
end