Class: Computering::Dsl::Headline
- Defined in:
- lib/computering/dsl/headline.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ Headline
constructor
A new instance of Headline.
Methods inherited from Text
#[], #blank?, #buffer, #execute, from_text
Constructor Details
#initialize(text) ⇒ Headline
Returns a new instance of Headline.
3 4 5 6 |
# File 'lib/computering/dsl/headline.rb', line 3 def initialize(text) @text = text.background(:red) @buffer = "#{'=' * text.size}\n\n".foreground(:red) end |