Class: Contracts::ResourcePath
- Inherits:
-
Object
- Object
- Contracts::ResourcePath
- Defined in:
- lib/custom_contracts.rb
Class Method Summary collapse
Class Method Details
.to_s ⇒ Object
131 132 133 |
# File 'lib/custom_contracts.rb', line 131 def self.to_s 'A valid resource path string or regex' end |
.valid?(val) ⇒ Boolean
127 128 129 |
# File 'lib/custom_contracts.rb', line 127 def self.valid?(val) C::Or[String, Regexp] end |