Module: Lab42::EqAndPatterns
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
9 10 11 12 |
# File 'lib/lab42/eq_and_patterns.rb', line 9 def ==(other) other.is_a?(self.class) && to_a == other.to_a end |
#[](idx) ⇒ Object
5 6 7 |
# File 'lib/lab42/eq_and_patterns.rb', line 5 def [](idx) to_a[idx] end |
#deconstruct ⇒ Object
14 15 16 |
# File 'lib/lab42/eq_and_patterns.rb', line 14 def deconstruct(*) to_a end |