Sha256: beb35b499aab636be806b88d70bb0cab8ae3e0933af178dadfa186d1c2ed1602

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

require 'shellwords'

module Calrom
  # Parses configuration file contents to an ARGV-like Array
  class RcParser
    def self.call(content)
      Shellwords.split(content.gsub(/#.+?$/, ''))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calrom-0.4.0 lib/calrom/rc_parser.rb
calrom-0.3.0 lib/calrom/rc_parser.rb