First, install it:
$ gem install veils
Then, use it like this:
require 'veils'
obj = Veil.new(obj, to_s: 'Hello, world!')
The method to_s
will return Hello, world!
until some other
method is called and the veil is "pierced."
Keep in mind that Veil
is thread-safe.
How to contribute
Read these guidelines. Make sure you build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then:
$ bundle update
$ bundle exec rake
If it's clean and you don't see any error messages, submit your pull request.