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.
324 325 326 |
# File 'lib/filigree/match.rb', line 324 def match?(_, _) true end |
#weight ⇒ Object
328 329 330 |
# File 'lib/filigree/match.rb', line 328 def weight 4 end |