Method: Ufo::TaskDefinition::Erb::Base#print_code
- Defined in:
- lib/ufo/task_definition/erb/base.rb
#print_code(text) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/ufo/task_definition/erb/base.rb', line 9 def print_code(text) lines = text.split("\n") lpad = lines.size.to_s.size lines.each_with_index do |line,n| printf("%#{lpad}d %s\n", n+1, line) end nil end |