ruby on rails - How do I stop a pry.binding conditionally on a symbol or string? -
I have a rail
app running and I binding.pry symbol
on a specific string
, but I can not get the syntax here, here is my code:
def? (Resource, operation, option = {}) binding. Credential (option [: as]). Do each. Credential | Can = credential.can? (Resource, operations, options) can refund until that can.nil? And Neil End
I look at the break
keyword in the docs, but I can not find this work in any way can anyone show me What is that syntax supposed to be?
You can just add a
< Code> What can DIF do? (Resource, operation, option = {}) binding. If your_condition_is_met credentials (option [: as]). Do each. Credential | Can = credential.can? (Resource, operations, options) can refund until that can.nil? And Neil End
Comments
Post a Comment