Class: Ronad::JustOne Deprecated
Overview
Deprecated.
Class Method Summary collapse
Methods inherited from Just
#and_then, #initialize, #monad_value
Methods inherited from Monad
#continue, #initialize, #monad_value, #value, #~@
Constructor Details
This class inherits a constructor from Ronad::Just
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ronad::Monad
Class Method Details
.new(*args) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ronad/just_one.rb', line 5 def self.new(*args) warn "[DEPRECATION] Ronad::JustOne is deprecated, see Ronad::Many::from_multiple_values." raise CannotBeNil if args.compact.empty? Just.new Maybe.from_multiple_values(*args) end |