Module: HashMash
- Included in:
- Hash
- Defined in:
- lib/liquidoc.rb
Overview
Text manipulation Classes, Modules, procs, etc
Instance Method Summary collapse
Instance Method Details
#to_opts_args ⇒ Object
1005 1006 1007 1008 1009 1010 1011 1012 1013 |
# File 'lib/liquidoc.rb', line 1005 def to_opts_args out = '' if self.is_a? Hash # TODO Should also be testing for flatness self.each do |opt,arg| out = out + " --#{opt} #{arg}" end end return out end |