Module: Speck::Mixins

Defined in:
lib/speck/core_ext/check_mixins.rb

Overview

These methods, when mixed into their respective classes, provide some conveniences when it comes to creating ‘Check`s.

Defined Under Namespace

Modules: Object, Proc

Class Method Summary collapse

Class Method Details

.mixin!Object

This method will quickly mix all of our ‘Mixins` into their respective targets.



10
11
12
13
14
# File 'lib/speck/core_ext/check_mixins.rb', line 10

def self.mixin!
  Speck::Mixins.constants
    .map {|mod| Speck::Mixins.const_get(mod) }
    .each {|mod| mod::Target.send :include, mod }
end