Class: Set
- Inherits:
-
Object
- Object
- Set
- Defined in:
- lib/powertool/set.rb
Overview
Extensions to Ruby’s Set class
Instance Method Summary collapse
Instance Method Details
#pop ⇒ Object
5 6 7 8 9 |
# File 'lib/powertool/set.rb', line 5 def pop temp = to_a.pop delete(temp) temp end |