Method: Command::DSL::Formatting#item
- Defined in:
- lib/command-set/dsl.rb
#item(name, options = {}) ⇒ Object
Clean way to create an item of output. Allows for various options to be added. The normal output method (#puts, #p, #write…) are all diverted within a command, and effectively create no-option items.
490 491 492 |
# File 'lib/command-set/dsl.rb', line 490 def item(name, ={}) $stdout.relevant_collector.item(name, ) end |