Class: Stack

Inherits:
Array
  • Object
show all
Defined in:
lib/bfunj.rb

Instance Method Summary collapse

Instance Method Details

#popObject



3
4
5
6
# File 'lib/bfunj.rb', line 3

def pop
  return 0 if self.empty?
  super
end