Class: DMatch::SelectSplat

Inherits:
Splat show all
Defined in:
lib/destructure/types.rb

Overview

experimental

Instance Attribute Summary collapse

Attributes inherited from Var

#name

Instance Method Summary collapse

Methods included from Predicated

#test

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

#patternObject (readonly)

Returns the value of attribute pattern.



46
47
48
# File 'lib/destructure/types.rb', line 46

def pattern
  @pattern
end