Class: TurnipFormatter::Printer::StepExtraArgs
- Inherits:
-
Object
- Object
- TurnipFormatter::Printer::StepExtraArgs
- Extended by:
- TurnipFormatter::Printer
- Defined in:
- lib/turnip_formatter/printer/step_extra_args.rb
Class Method Summary collapse
Methods included from TurnipFormatter::Printer
Class Method Details
.print_out(args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/turnip_formatter/printer/step_extra_args.rb', line 9 def print_out(args) return '' if args.nil? args.map do |arg| if arg.instance_of?(Turnip::Table) render_template(:step_outline, { table: arg.to_a }) else render_template(:step_multiline, { lines: arg }) end end.join end |