README.md in ruby_collections-0.0.2 vs README.md in ruby_collections-0.0.3
- old
+ new
@@ -42,9 +42,27 @@
```
Similarly we can use MinHeap as well.
+### RubyCollections::Stack
+
+```ruby
+
+stack = RubyCollections::Stack.new
+
+stack.push(1) # => [1]
+
+stack.push(4) # => [4, 1]
+
+stack.top # => 4
+
+stack.pop # => 4
+
+stack.top # => 1
+
+```
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).