Class: DMatch::FilterSplat
Overview
experimental
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Attributes inherited from Var
Instance Method Summary collapse
-
#initialize(name = nil, pattern) ⇒ FilterSplat
constructor
A new instance of FilterSplat.
- #validate_pattern ⇒ Object
Methods included from Predicated
Constructor Details
#initialize(name = nil, pattern) ⇒ FilterSplat
Returns a new instance of FilterSplat.
33 34 35 36 37 |
# File 'lib/destructure/types.rb', line 33 def initialize(name=nil, pattern) super(name) @pattern = pattern validate_pattern end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
31 32 33 |
# File 'lib/destructure/types.rb', line 31 def pattern @pattern end |