Module: Mustermann::ToPattern
- Defined in:
- lib/mustermann/to_pattern.rb
Overview
Mixin for adding #to_pattern ducktyping to objects.
By default included into String, Symbol, Regexp and Pattern.
Instance Method Summary collapse
-
#to_pattern(**options) ⇒ Mustermann::Pattern
Converts the object into a Pattern.
Instance Method Details
#to_pattern(**options) ⇒ Mustermann::Pattern
Converts the object into a Pattern.
37 38 39 |
# File 'lib/mustermann/to_pattern.rb', line 37 def to_pattern(**) Mustermann.new(self, **) end |