Sha256: 72169fc41076d47c8ab78d264464bd661f25c5b8d2e4d670fe92598365280f16
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
module SoberSwag class Path ## # Parse a parameter class Param def initialize(name, type) @name = name @type = type end def param? true end def param_key @name end def param_type @type end def match(param) if (m = @type.try(param)).success? [:match, m] else [:fail] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sober_swag-0.1.0 | lib/sober_swag/path/param.rb |