Sha256: b90cc21c2ed81baf0482ede3e28af6494b4bf2029456fbb4f369abfb02cbf500
Contents?: true
Size: 204 Bytes
Versions: 4
Compression:
Stored size: 204 Bytes
Contents
class HSS::Parser def expand(input) @config['expansions'].each { |long, shorts| return long if shorts.include? input } raise NameError, "No expansion found for: #{input}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hss-0.2.4 | lib/helpers/expand.rb |
hss-0.2.3 | lib/helpers/expand.rb |
hss-0.2.2 | lib/helpers/expand.rb |
hss-0.2.0 | lib/helpers/expand.rb |