Sha256: fddee3a0d2a0411d7c9a0be032de083cfde983bdaff84bef6bcb94d2b19a8bfe

Contents?: true

Size: 636 Bytes

Versions: 5

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module Pakyow
  module Helpers
    # Convenience methods for interacting with the app object.
    #
    module App
      extend Forwardable

      attr_reader :app

      # @!method config
      #   Delegates to {app}.
      #
      #   @see App#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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-core-1.0.0.rc5 lib/pakyow/helpers/app.rb
pakyow-core-1.0.0.rc4 lib/pakyow/helpers/app.rb
pakyow-core-1.0.0.rc3 lib/pakyow/helpers/app.rb
pakyow-core-1.0.0.rc2 lib/pakyow/helpers/app.rb
pakyow-core-1.0.0.rc1 lib/pakyow/helpers/app.rb