Module: FunRuby::Container::Mixin

Defined in:
lib/fun_ruby/container/mixin.rb

Class Method Summary collapse

Class Method Details

.build(aliases:) ⇒ Object



10
11
12
13
14
15
# File 'lib/fun_ruby/container/mixin.rb', line 10

def self.build(aliases:)
  mixin = Module.new
  mixin.send(:define_method, :_resolve) { Resolve.build(aliases: aliases) }
  mixin.send(:include, self)
  mixin
end