Module: AptControl::Bot::ArgHelpers
- Included in:
- AptControl::Bot
- Defined in:
- lib/apt_control/bot.rb
Overview
as a module for testing
Instance Method Summary collapse
Instance Method Details
#split_args(args_string) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/apt_control/bot.rb', line 6 def split_args(args_string) # there is probably some code out there that can do this better, maybe # go out and find it if it proves troublsome :) args_string.scan(/[^ '"]+|'[^']+'|"[^"]+"/).map do |str| str.gsub(/'|"/, '') end end |