Module: StubRequests::URI::Scheme
- Defined in:
- lib/stub_requests/uri/scheme.rb
Overview
Module Scheme handles validation of StubRequests::URI schemes
Constant Summary collapse
- SCHEMES =
Returns a list of valid HTTP schemes
%w[http https].freeze
Class Method Summary collapse
-
.valid?(scheme) ⇒ true, false
Checks if the scheme is valid.
Class Method Details
.valid?(scheme) ⇒ true, false
Checks if the scheme is valid
31 32 33 |
# File 'lib/stub_requests/uri/scheme.rb', line 31 def self.valid?(scheme) SCHEMES.include?(scheme.to_s) end |