Method: Cod::Process#initialize
- Defined in:
- lib/cod/process.rb
#initialize(command, serializer = nil) ⇒ Process
Constructs a process object and runs the command.
24 25 26 27 28 |
# File 'lib/cod/process.rb', line 24 def initialize(command, serializer=nil) @serializer = serializer || SimpleSerializer.new run(command) end |