Class: Filigree::WildcardPattern
- Inherits:
-
BasicPattern
- Object
- BasicPattern
- Filigree::WildcardPattern
- Includes:
- Singleton
- Defined in:
- lib/filigree/match.rb
Overview
A pattern that matches any object
Instance Method Summary collapse
-
#match?(_, _) ⇒ true
Return true for any object and don’t create any bindings.
- #weight ⇒ Object
Methods inherited from BasicPattern
Methods included from AbstractClass
#abstract_method, extended, #install_icvars, #new
Instance Method Details
#match?(_, _) ⇒ true
Return true for any object and don’t create any bindings.
326 327 328 |
# File 'lib/filigree/match.rb', line 326 def match?(_, _) true end |
#weight ⇒ Object
330 331 332 |
# File 'lib/filigree/match.rb', line 330 def weight 4 end |