Sha256: d403fcb741839563e2a5f3e225c73e9a60d253bdda391b044a200707842088a1
Contents?: true
Size: 261 Bytes
Versions: 3
Compression:
Stored size: 261 Bytes
Contents
## # Expand a shortcode based the config hash class HSS::Parser private def expand(input) @config['expansions'].each do |long, shorts| return long if shorts.include? input end fail NameError, "No expansion found for: #{input}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hss-0.2.8 | lib/helpers/expand.rb |
hss-0.2.6 | lib/helpers/expand.rb |
hss-0.2.5 | lib/helpers/expand.rb |