Module: Fairy::OutputInterface
- Defined in:
- lib/fairy/client/output.rb
Instance Method Summary collapse
Instance Method Details
#output(vfn, opts = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fairy/client/output.rb', line 9 def output(vfn, opts = nil) if vfn.kind_of?(Class) outputter = vfn.output(@fairy, opts) elsif !vfn.kind_of?(String) || VFile.vfile?(vfn) outputter = OutputFile.output(@fairy, opts, vfn) else outputter = OutputLocalFile.output(@fairy, opts, vfn) end outputter.input = self outputter end |