lib/vedeu/output/compositor.rb in vedeu-0.0.5 vs lib/vedeu/output/compositor.rb in vedeu-0.0.6

- old
+ new

@@ -1,17 +1,17 @@ module Vedeu class Compositor class << self - def write(output = [], options = {}) + def write(output = []) return if output.nil? || output.empty? - new(output, options).write + new(output).write end end - def initialize(output = [], options = {}) - @output, @options = output, options + def initialize(output = []) + @output = output end def write parsed.each_with_index do |data, index| clear_line(index) @@ -45,16 +45,8 @@ Terminal.clear_line(index) end def write_line(data) Terminal.output(data) - end - - def options - defaults.merge!(@options) - end - - def defaults - {} end end end