class String

Public Instance Methods

thru(*command) click to toggle source
# File lib/thru.rb, line 6
def thru(*command)
  stdout, status = Open3.capture2(*command, stdin_data: self)
  raise "#{status}" unless status == 0
  stdout
end
Also aliased as: |
|(*command)
Alias for: thru