Module: Bdd::Title
- Defined in:
- lib/bdd/title.rb
Class Attribute Summary collapse
-
.length ⇒ Object
Returns the value of attribute length.
Class Method Summary collapse
Class Attribute Details
.length ⇒ Object
Returns the value of attribute length.
13 14 15 |
# File 'lib/bdd/title.rb', line 13 def length @length end |
Class Method Details
.adjust(title) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/bdd/title.rb', line 4 def adjust(title) if @last_title == title title = '' else @last_title = title end "#{title.rjust(length)} " end |