I am trying to use dry-rb gems, specifically dry-monads on Ruby on Rails project (version 188.8.131.52). I add the next line in my Gemfile:
source 'https://rubygems.org' #Another gems gem 'dry-monads'
Execute bundle install command and it is successful. However when I try to include Dry::Monads[:result] and load the class, the rails console throws the next error:
NameError (uninitialized constant MyNamespace::MyClass::Dry.
I also try to include Dry::Monads::Result::Mixin instead Dry::Monads[:result] and rails console throws the same error.
If I try require explicitly the console throws LoadError (cannot load such file – dry/monads).
Do you have any idea about this problem?
Thanks in advance and regards.