lib/vedeu/output/compositor.rb in vedeu-0.2.3 vs lib/vedeu/output/compositor.rb in vedeu-0.2.4
- old
+ new
@@ -34,11 +34,10 @@
attr_reader :name
# Renders the buffer unless empty, otherwise clears the area which the
# interface occupies.
#
- # @api private
# @return [String]
def view
if buffer
Render.call(Interface.new(new_interface))
@@ -49,11 +48,10 @@
end
# Combine the buffer attributes with the interface attributes. Buffer
# presentation attributes will override interface defaults.
#
- # @api private
# @return [Hash]
def new_interface
combined = interface
combined[:lines] = buffer[:lines]
combined[:colour] = buffer[:colour] if defined_value?(buffer[:colour])
@@ -61,18 +59,16 @@
combined
end
# Returns the attributes of the named interface (layout).
#
- # @api private
# @return [Hash]
def interface
@_interface ||= Vedeu::Interfaces.find(name)
end
# Returns the attributes of the latest buffer (view).
#
- # @api private
# @return [Hash]
def buffer
@_buffer ||= Vedeu::Buffers.latest(name)
end