Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/notehub/notehub.rb

Instance Method Summary collapse

Instance Method Details

#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