Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aesthetikx/bubble-tea
A Ruby Gem to generate possible bubble teas
https://github.com/aesthetikx/bubble-tea
Last synced: about 2 months ago
JSON representation
A Ruby Gem to generate possible bubble teas
- Host: GitHub
- URL: https://github.com/aesthetikx/bubble-tea
- Owner: Aesthetikx
- License: mit
- Created: 2014-04-21T01:37:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-24T18:38:49.000Z (over 10 years ago)
- Last Synced: 2023-08-22T14:54:08.951Z (over 1 year ago)
- Language: Ruby
- Size: 324 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
bubble-tea
==========A Ruby Gem to generate possible bubble teas
###Installation
```bash
gem install bubble-tea
```
###Usage```ruby
# Get all teas
BubbleTea.all# Generate a random tea
BubbleTea.any# Specify a flavor
BubbleTea.any do
with :coconut
end# Filter a flavor
BubbleTea.any do
without :taro
end# Specify a base tea
Snowbubble.all do
with :peach
end# Valid base types
[CalpicoCooler, FusionTea, Smoothie, Snowbubble, MilkTea, TurtleTea, TikiTea, ThaiTea]# Get all hot teas
BubbleTea.hot# Complex example
FusionTea.any do
size :large
bubbles :mango_stars
with :strawberry
end
```