lib/vedeu/output/renderers/terminal.rb in vedeu-0.4.52 vs lib/vedeu/output/renderers/terminal.rb in vedeu-0.4.53
- old
+ new
@@ -6,10 +6,12 @@
# and content suitable for a terminal.
#
# @api private
class Terminal
+ include Vedeu::RendererOptions
+
# Returns a new instance of Vedeu::Renderers::Terminal.
#
# @param options [Hash]
# @return [Vedeu::Renderers::Terminal]
def initialize(options = {})
@@ -28,23 +30,9 @@
# @return [Array<Array<Vedeu::Char>>]
def parsed(output)
Vedeu.timer('Compression') do
Vedeu::Compressor.render(output)
end
- end
-
- # Combines the options provided at instantiation with the default values.
- #
- # @return [Hash<Symbol => void>]
- def options
- defaults.merge!(@options)
- end
-
- # The default values for a new instance of this class.
- #
- # @return [Hash<Symbol => void>]
- def defaults
- {}
end
end # Terminal
end # Renderers