Class: DMatch::SelectSplat
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) ⇒ SelectSplat
constructor
A new instance of SelectSplat.
Methods included from Predicated
Constructor Details
#initialize(name = nil, pattern) ⇒ SelectSplat
Returns a new instance of SelectSplat.
48 49 50 51 |
# File 'lib/destructure/types.rb', line 48 def initialize(name=nil, pattern) super(name) @pattern = pattern end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
46 47 48 |
# File 'lib/destructure/types.rb', line 46 def pattern @pattern end |