Class: Computering::Dsl::Headline
- Defined in:
- lib/computering/dsl/headline.rb
Instance Attribute Summary
Attributes inherited from Text
Instance Method Summary collapse
Methods inherited from Text
#[], #blank?, #execute, from_text, #initialize, #padding
Constructor Details
This class inherits a constructor from Computering::Dsl::Text
Instance Method Details
#buffer ⇒ Object
3 4 5 |
# File 'lib/computering/dsl/headline.rb', line 3 def buffer add_style('=' * @text.size, :buffer) end |
#margin ⇒ Object
7 8 9 |
# File 'lib/computering/dsl/headline.rb', line 7 def margin " " end |