Module: Sinatra::Unpoly::Helpers
- Defined in:
- lib/sinatra/unpoly.rb
Instance Method Summary collapse
-
#unpoly ⇒ Object
(also: #up)
The ::Rack::Unpoly inspector for this request.
-
#unpoly? ⇒ Boolean
(also: #up?)
Determine if this is an Unpoly request.
Instance Method Details
#unpoly ⇒ Object Also known as: up
The ::Rack::Unpoly inspector for this request.
44 45 46 |
# File 'lib/sinatra/unpoly.rb', line 44 def unpoly SinatraInspector.new(env["rack.unpoly"], response) end |
#unpoly? ⇒ Boolean Also known as: up?
Determine if this is an Unpoly request.
50 51 52 |
# File 'lib/sinatra/unpoly.rb', line 50 def unpoly? unpoly.unpoly? end |