Class: Hanami::Routing::Endpoint Private
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Hanami::Routing::Endpoint
- Defined in:
- lib/hanami/routing/endpoint.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Routing endpoint This is the object that responds to an HTTP request made against a certain path.
The router will use this class for:
* Procs and any Rack compatible object (respond to #call)
Direct Known Subclasses
Instance Method Summary collapse
- #destination_path ⇒ Object private
- #inspect ⇒ Object private
- #redirect? ⇒ Boolean private
- #routable? ⇒ Boolean private
Instance Method Details
#destination_path ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
65 66 |
# File 'lib/hanami/routing/endpoint.rb', line 65 def destination_path end |
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/hanami/routing/endpoint.rb', line 36 def inspect case __getobj__ when Proc source, line = __getobj__.source_location lambda_inspector = " (lambda)" if __getobj__.lambda? "#<Proc@#{ ::File.(source) }:#{ line }#{ lambda_inspector }>" when Class __getobj__ else "#<#{ __getobj__.class }>" end end |
#redirect? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
59 60 61 |
# File 'lib/hanami/routing/endpoint.rb', line 59 def redirect? false end |
#routable? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
52 53 54 55 |
# File 'lib/hanami/routing/endpoint.rb', line 52 def routable? !__getobj__.nil? rescue ArgumentError end |