masked_string
Version, currently master branch1 version
- master branchlatestJul 31, 2019
github.com/denolfe/masked-string
Simple masked string as an object
3 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
masked_string:
github: denolfe/masked-string
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.29.0- License
- MIT
- Author
- Elliot DeNolf
Dependencies
This version declares no dependencies.
README
Masked String
Simple masked string wrapper class. Once instantiated, the unmasked value cannot be accessed. Normal methods like ==, +, and to_s are handled as well.
Installation
- Add the dependency to your
shard.yml:
dependencies:
masked_string:
github: denolfe/masked-string
- Run
shards install
Usage
require "masked_string"
masked = Masked::Str.new("123456789", 4)
masked.value #=> "*****6789"
masked.to_s #=> "*****6789"
Contributing
- Fork it (https://github.com/denolfe/masked_string/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
- Elliot DeNolf - 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
- Jul 31, 2019
- Crystal
0.29.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/denolfe/masked-string
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 14, 2026
- Versions
- 1