class Calrom::RcParser

Parses configuration file contents to an ARGV-like Array

Public Class Methods

call(content) click to toggle source
# File lib/calrom/rc_parser.rb, line 6
def self.call(content)
  Shellwords.split(content.gsub(/#.+?$/, ''))
end