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, options={}) #:yield: 
  begin_list(name, options)
  yield if block_given?
  end_list
end