Class: Leeloo::OutputFactory
- Inherits:
-
Object
- Object
- Leeloo::OutputFactory
- 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 output = nil if .ascii output = Ascii.new else output = Terminal.new end if .clipboard ClipboardOutputDecorator.new output else output end end |