Sha256: 9d9af6036cd97fcaa8b383287acea69c587c092a1729f5ec4b18715ee4ca5e58

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

module Warp
  module ModelMatchers
    class Matcher < Warp::Matcher
      private

      def model(model_or_instance)
        if model_or_instance.is_a? Class
          model_or_instance
        else
          model_or_instance.class
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
warp-1.1.0 lib/warp/model_matchers/matcher.rb