Class: Chamomile::Layout::Spinner
- Defined in:
- lib/chamomile/layout/spinner.rb
Instance Method Summary collapse
-
#initialize(label: nil, color: "#7d56f4") ⇒ Spinner
constructor
A new instance of Spinner.
- #render(width:, height:) ⇒ Object
Constructor Details
Instance Method Details
#render(width:, height:) ⇒ Object
12 13 14 15 16 |
# File 'lib/chamomile/layout/spinner.rb', line 12 def render(width:, height:) view = @spinner.view view += " #{@label}" if @label Chamomile::Style.new.foreground(@color).render(view) end |