Sha256: b81dd84ee45945fc8a40ab9aee687bc6192538d9ed7d4749f2cf985db3f54bd6

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module Pakyow
  class Application
    module Helpers
      module UI
        def ui?
          @connection.request_header?("pw-ui")
        end

        def ui
          @connection.request_header("pw-ui")
        end

        # @api private
        def ui_transform?
          @connection.set?(:__ui_transform)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-ui-1.0.6 lib/pakyow/application/helpers/ui.rb
pakyow-ui-1.0.5 lib/pakyow/application/helpers/ui.rb
pakyow-ui-1.0.4 lib/pakyow/application/helpers/ui.rb
pakyow-ui-1.0.3 lib/pakyow/application/helpers/ui.rb
pakyow-ui-1.0.2 lib/pakyow/application/helpers/ui.rb
pakyow-ui-1.0.1 lib/pakyow/application/helpers/ui.rb
pakyow-ui-1.0.0 lib/pakyow/application/helpers/ui.rb