Guest User

Untitled

a guest
Feb 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. module Spec
  2. module Matchers
  3.  
  4. class Have #:nodoc:
  5. # ...
  6.  
  7. def method_missing(sym, *args, &block)
  8. @collection_name = sym
  9. @plural_collection_name = Inflector.pluralize(sym.to_s) if Object.const_defined?(:Inflector)
  10. @args = args
  11. @block = block
  12. self
  13. end
  14.  
  15. # ...
  16. end
  17. end
  18. end
Add Comment
Please, Sign In to add comment