method

method_missing

rspec latest stable - Class: Spec::Matchers::Have
method_missing(sym, *args, &block)
private

No documentation available.

# File lib/spec/matchers/have.rb, line 79
      def method_missing(sym, *args, &block)
        @collection_name = sym
        if inflector = (defined?(ActiveSupport::Inflector) ? ActiveSupport::Inflector : (defined?(Inflector) ? Inflector : nil))
          @plural_collection_name = inflector.pluralize(sym.to_s)
        end
        @args = args
        @block = block
        self
      end