Skip to content

Instantly share code, notes, and snippets.

@anicholson
Created Jul 21, 2020
Embed
What would you like to do?
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