Class: Struct

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

Class Method Summary collapse

Class Method Details

.deconstruct(val) ⇒ Object



25
26
27
28
# File 'lib/pattern-match/deconstructor.rb', line 25

def deconstruct(val)
  accept_self_instance_only(val)
  val.values
end