Skip to content

Instantly share code, notes, and snippets.

@anicholson
Created July 21, 2020 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anicholson/b578c04866a23069a41fc7fd45d8dad7 to your computer and use it in GitHub Desktop.
Save anicholson/b578c04866a23069a41fc7fd45d8dad7 to your computer and use it in GitHub Desktop.
Visibility bug in dry-monads' Do
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