Method: OrgToYaml#make_options
- Defined in:
- lib/my_help/org2yml.rb
#make_options(line) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/my_help/org2yml.rb', line 16 def (line) head, desc = line.split(':') desc ||= head.to_s short = "-#{head[0]}" if @short_stored.include?(short) or head=='license' or head=='head' short = '' else @short_stored << short end { short: short, long: "#{head}", desc: desc } end |