Class: Class

Inherits:
Object show all
Includes:
PatternMatch::Deconstructable
Defined in:
lib/pattern-match/deconstructor.rb

Instance Method Summary collapse

Methods included from PatternMatch::Deconstructable

#call

Instance Method Details

#deconstruct(val) ⇒ Object

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/pattern-match/deconstructor.rb', line 6

def deconstruct(val)
  raise NotImplementedError, "need to define `#{__method__}'"
end