rom-rb/rom-http

View on GitHub
lib/rom/http/types.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require "rom/types"

module ROM
  module HTTP
    module Types
      include ROM::Types

      Path = Coercible::String.constructor { |s| s.sub(%r{\A/}, "") }
    end
  end
end