Method: OCRunner::Console#indent
- Defined in:
- lib/ocrunner/console.rb
#indent(*args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ocrunner/console.rb', line 16 def indent(*args) if args.first.is_a? Numeric indents = args.first text = args.last else indents = 1 text = args.first end " " * indents + text.to_s end |