lib/vedeu/interfaces/clear.rb in vedeu-0.6.69 vs lib/vedeu/interfaces/clear.rb in vedeu-0.6.70
- old
+ new
@@ -86,11 +86,11 @@
@chars ||= (' ' * width).freeze
end
# @return [Vedeu::Colours::Colour]
def colour
- @colour ||= Vedeu.interfaces.by_name(name).colour
+ @colour ||= interface.colour
end
# @return [Boolean]
def content_only?
options[:content_only]
@@ -123,9 +123,14 @@
else
geometry.height
end
+ end
+
+ # @return [Vedeu::Interfaces::Interface]
+ def interface
+ Vedeu.interfaces.by_name(name)
end
# @return [Hash<Symbol => Boolean>]
def options
defaults.merge!(@options)