Implement Stack programming concept using ruby, include Push and Pop method implementation, maximum number stored on stack method implementation and mean value for numbers stored on stack, stack applying FILO methodology.
-
ruby files will exists under
application
folder. -
Stack implementation exists on
stack.rb
file forStack
class which include initial stack implementation(push, pop and maximum number methods). -
Extra Stack implementation exists on
extra.rb
file forExtra
class which include extra methods(mean value method) for stack implementation. -
For Testing Both Classes, can use
main.rb
file.
There installed environment for Ruby using Vagrant to run Examples, To install vagrant See official Doc you must install virtualBox first See official Doc.
-
load vagrant box with next command
cd /project-path && vagrant up
-
To access example code on vagrant box using SSH with next command
cd /project-path && vagrant ssh
cd /home/vagrant/application