Class: Computering::Dsl::Headline

Inherits:
Text
  • Object
show all
Defined in:
lib/computering/dsl/headline.rb

Instance Attribute Summary

Attributes inherited from Text

#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

#bufferObject



3
4
5
# File 'lib/computering/dsl/headline.rb', line 3

def buffer
  add_style('=' * @text.size, :buffer)
end

#marginObject



7
8
9
# File 'lib/computering/dsl/headline.rb', line 7

def margin
  "       "
end