Guest User

Untitled

a guest
Nov 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class X
  2. def connect(action, to, with_success_status_code)
  3. :result_a
  4. end
  5.  
  6. def connect(different_thing_entirely)
  7. :result_b
  8. end
  9. end
  10.  
  11. x = X.new
  12.  
  13. x.connect action: :create, to: CreateChangeRequest, with_success_status_code: 201
  14. #=> :result_a
  15.  
  16. x.connect different_thing_entirely: foo
  17. #=> :result_b
Add Comment
Please, Sign In to add comment