Module: Monadic::SuccessFailure

Included in:
Failure, Success
Defined in:
lib/monadic/either.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


99
100
101
102
103
104
105
# File 'lib/monadic/either.rb', line 99

def self.included(base)
  base.class_eval do
    public_class_method :new
    extend  ClassMethods
    include InstanceMethods
  end
end