Method: Command::DSL::Formatting#list
- Defined in:
- lib/command-set/dsl.rb
#list(name, options = {}) ⇒ Object
To create lists and sublist of data, you can use #list to wrap code in a #begin_list / #end_list pair.
469 470 471 472 473 |
# File 'lib/command-set/dsl.rb', line 469 def list(name, ={}) #:yield: begin_list(name, ) yield if block_given? end_list end |