Class: Calrom::RcParser

Inherits:
Object
  • Object
show all
Defined in:
lib/calrom/rc_parser.rb

Overview

Parses configuration file contents to an ARGV-like Array

Class Method Summary collapse

Class Method Details

.call(content) ⇒ Object



6
7
8
# File 'lib/calrom/rc_parser.rb', line 6

def self.call(content)
  Shellwords.split(content.gsub(/#.+?$/, ''))
end