any
Version, currently master branch1 version
- master branchlatestFeb 11, 2022
github.com/rymiel/any
A nefarious little library to ""safely"" break the type system in Crystal. Mirror of https://gitlab.com/rymiel/any
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
any:
github: rymiel/any
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.3.0- License
- MIT
- Author
- Emilia Dreamer
Dependencies
This version declares no dependencies.
README
Any
A nefarious little library to ""safely"" break the type system and perform type erasure in Crystal
Installation
-
Add the dependency to your
shard.yml:dependencies: any: gitlab: rymiel/any -
Run
shards install
Usage
require "any"
erased_string = Any.new "Hello, world!"
puts erased_string.value(String) # => Hello, world!
erased_string.value(Int32) # Throws at runtime!
Contributing
- Fork it (https://gitlab.com/rymiel/any/-/forks/new)
- 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 Merge Request
Contributors
- Emilia Dreamer - 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
- Feb 11, 2022
- Crystal
1.3.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/rymiel/any
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1