-
-
Save anicholson/b578c04866a23069a41fc7fd45d8dad7 to your computer and use it in GitHub Desktop.
Visibility bug in dry-monads' Do
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'dry-monads' | |
end | |
class WithSecret | |
include Dry::Monads[:do] | |
private | |
def reveal | |
puts "Oops, I swore I wouldn't tell!" | |
end | |
end | |
WithSecret.new.reveal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment