Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class X
- def connect(action, to, with_success_status_code)
- :result_a
- end
- def connect(different_thing_entirely)
- :result_b
- end
- end
- x = X.new
- x.connect action: :create, to: CreateChangeRequest, with_success_status_code: 201
- #=> :result_a
- x.connect different_thing_entirely: foo
- #=> :result_b
Add Comment
Please, Sign In to add comment