Method: String#hr
- Defined in:
- lib/notehub/notehub.rb
#hr(length = 0) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/notehub/notehub.rb', line 16 def hr(length=0) length = `tput cols`.strip.to_i if length == 0 out = "" length.times do out += self end out end |