Class: Leeloo::OutputFactory

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

Class Method Summary collapse

Class Method Details

.create(options) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/leeloo/controller.rb', line 3

def self.create options
	output = nil
	if options.ascii
		output = Ascii.new
	else
		output = Terminal.new
	end
	if options.clipboard
		ClipboardOutputDecorator.new output
	else
		output
	end
end