Sha256: 9b97267f9194726ec1631075e21cacb8045212cfc70543316a8aa100b5359429
Contents?: true
Size: 716 Bytes
Versions: 7
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true require "forwardable" module Pakyow class Application module Helpers # Convenience methods for interacting with the app object. # module Application extend Forwardable attr_reader :app # @!method config # Delegates to {app}. # # @see Application#config def_delegators :app, :config # @!method path # @return builds the path to a named route (see {Paths#path}) # # @!method path_to # @return builds the path to a route, following a trail of names (see {Paths#path_to}) def_delegators :"app.endpoints", :path, :path_to end end end end
Version data entries
7 entries across 7 versions & 1 rubygems