Sha256: 9a0ff24232f311610b03c4111b44851a31bb5f02419f8fa15939d7316bf0543e
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
# Remarkable core module module Remarkable # A module that keeps all matchers added. This is useful because it allows # to include matchers in Test::Unit as well. module Matchers; end # Helper that includes required Remarkable modules into the given klass. def self.include_matchers!(base, klass) # Add Remarkable macros core module klass.send :extend, Remarkable::Macros if defined?(base::Matchers) klass.send :include, base::Matchers Remarkable::Matchers.send :extend, base::Matchers Remarkable::Matchers.send :include, base::Matchers end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remarkable-3.0.0 | lib/remarkable/matchers.rb |