Method: Console::Event::Spawn.for

Defined in:
lib/console/event/spawn.rb

.for(*arguments, **options) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/console/event/spawn.rb', line 26

def self.for(*arguments, **options)
	# Extract out the command environment:
	if arguments.first.is_a?(Hash)
		self.new(*arguments, **options)
	else
		self.new(nil, arguments, **options)
	end
end