class Addressable::Template
def initialize(pattern)
Experimental RBS support (using type sampling data from the type_fusion project).
def initialize: (String pattern) -> void
This signature was generated using 71 samples from 4 applications.
-
(Addressable::Template)- The initialized Template object.
Parameters:
-
pattern(#to_str) -- The URI Template pattern.
def initialize(pattern) if !pattern.respond_to?(:to_str) raise TypeError, "Can't convert #{pattern.class} into String." end @pattern = pattern.to_str.dup.freeze end