Method: Console#print_center
- Defined in:
- lib/drydock/console.rb
#print_center(str, props = {}) ⇒ Object
83 84 85 86 87 |
# File 'lib/drydock/console.rb', line 83 def print_center(str, props={}) props[:x] = ((width - str.noatt.length) / 2).to_i-1 props[:y] ||= height print_at(str, props) end |