Method: CommandMapper::Command.popen
- Defined in:
- lib/command_mapper/command.rb
permalink .popen(params = {}, mode: 'r', **kwargs) {|command| ... } ⇒ IO
Initializes and executes the command and returns an IO object to it.
183 184 185 186 |
# File 'lib/command_mapper/command.rb', line 183 def self.popen(params={}, mode: 'r', **kwargs,&block) command = new(params,**kwargs,&block) command.popen_command end |