Method: DS::Stack#peek

Defined in:
lib/ds/stacks/stack.rb

#peekObject

Returns element from the top of the stack.



28
29
30
# File 'lib/ds/stacks/stack.rb', line 28

def peek
  @store.last
end