Sha256: 306017e3565742b6d0ef5fb153eafbc32a45ad59156828a26c98da1e6fbed9fb
Contents?: true
Size: 368 Bytes
Versions: 2
Compression:
Stored size: 368 Bytes
Contents
require "warp/matcher" module Warp module ModelMatchers class Matcher < Warp::Matcher attr_reader :model_or_instance private def model if model_or_instance.is_a? Class model_or_instance else model_or_instance.class end end def model_name model.name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
warp-1.3.1 | lib/warp/model_matchers/matcher.rb |
warp-1.3.0 | lib/warp/model_matchers/matcher.rb |