Sha256: b88195c450daf3767f6dd1b15055db24741651ad510451e8c510f5b0f261cc19

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

module HSS
  ##
  # Allow shortcut expansion from the config
  class Parser
    private

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hss-1.0.1 lib/hss/helpers/shortcut.rb
hss-1.0.0 lib/hss/helpers/shortcut.rb
hss-0.2.11 lib/hss/helpers/shortcut.rb
hss-0.2.10 lib/helpers/shortcut.rb