module Cura::Termbox::Component::Base
Public Class Methods
included(base)
click to toggle source
# File lib/cura/termbox/component/base.rb, line 5 def self.included(base) base.instance_eval do remove_method(:foreground) remove_method(:background) end end
Public Instance Methods
background()
click to toggle source
Get the background color of this component.
@return [Color]
# File lib/cura/termbox/component/base.rb, line 22 def background get_or_inherit_color(:background, Cura::Color.black) end
foreground()
click to toggle source
Get the foreground color of this component.
@return [Color]
# File lib/cura/termbox/component/base.rb, line 15 def foreground get_or_inherit_color(:foreground, Cura::Color.white) end