Sha256: 37d5cad7ddb495accb66e624e749d724e6f5af5a775187bb82d0d7e543634d88
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
module AliasLineParser class Zsh def parse(line) key, value = line.split(/=/) value = remove_single_quotes(value) [key, value] end def remove_single_quotes(real) if real[0, 1] == "'" and real[-1, 1] == "'" real = real[1..-2] end real end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alias_metrics-0.1.2 | lib/alias_metrics/alias_line_parser/zsh.rb |