class Chamomile::Layout::StatusBar
Public Class Methods
Source
# File lib/chamomile/layout/status_bar.rb, line 6 def initialize(content, color: "#666666") @content = content.to_s @color = color end
Public Instance Methods
Source
# File lib/chamomile/layout/status_bar.rb, line 11 def render(width:, height:) Chamomile::Style.new .foreground(@color) .width(width) .render(@content) end