wordy
Version, currently master branch1 version
- master branchlatestJun 11, 2021
github.com/dscottboggs/wordy-crystal
Adds a substitute for the "and" and "or" keywords which are sorely missing from Crystal's stdlib.
Installation
# Add this to your shard.yml
dependencies:
wordy:
github: dscottboggs/wordy-crystal
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.0.0- License
- MIT
- Author
- Scott Boggs
Dependencies
This version declares no dependencies.
README
wordy
Add .and and .or methods to Object and a not top-level function.
This is what you get for allowing reopening and also not including the and keyword in a language targeting aesthetic codebases.
You're welcome.
Installation
-
Add the dependency to your
shard.yml:dependencies: wordy: github: dscottboggs/wordy-crystal -
Run
shards install
Usage
require "wordy"
hash = {"a" => 1, "b" => 2}
puts hash["a"]?.or "'a' not found in hash"
puts "a and b found" if hash.has_key?("a").and hash.has_key? "b"
Development
This is a half-joke shard, but if you feel like being in on the joke and can think of something to add go for it haha
Contributing
- Fork it (https://github.com/dscottboggs/wordy-crystal/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Scott Boggs - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 11, 2021
- Crystal
1.0.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/dscottboggs/wordy-crystal
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1