Module: Termline::Space
- Defined in:
- lib/termline/space.rb
Class Method Summary collapse
- .br(count = 1) ⇒ Object
- .builder(character, count = 8) ⇒ Object
- .color(color) ⇒ Object
- .line(count = 8) ⇒ Object
Class Method Details
.br(count = 1) ⇒ Object
39 40 41 |
# File 'lib/termline/space.rb', line 39 def br count=1 puts("\n" * count); end |
.builder(character, count = 8) ⇒ Object
36 37 38 |
# File 'lib/termline/space.rb', line 36 def builder(character, count=8) character * count end |
.color(color) ⇒ Object
47 48 49 |
# File 'lib/termline/space.rb', line 47 def color color Config.pretty("", :black, color) end |
.line(count = 8) ⇒ Object
43 44 45 |
# File 'lib/termline/space.rb', line 43 def line count=8 puts('-ยท- ' * count) end |