Method: DS::Stack#push

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

#push(x) ⇒ Object

Adds element on the top of the stack.



30
31
32
# File 'lib/ds/stacks/stack.rb', line 30

def push(x)
  store.push x
end