Sha256: c6e9a6221948fb4e52c16776c20f7a2e2105d151e863fc2e1eeaca51816e82fa

Contents?: true

Size: 213 Bytes

Versions: 3

Compression:

Stored size: 213 Bytes

Contents

##
# Allow shortcut expansion from the config

class HSS::Parser
  private

  def shortcut(input)
    @config['shortcuts'][input] || fail
  rescue
    raise NameError, "Shortcut does not exist #{input}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hss-0.2.8 lib/helpers/shortcut.rb
hss-0.2.6 lib/helpers/shortcut.rb
hss-0.2.5 lib/helpers/shortcut.rb