You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to: @key = send(:read_jwk, file) # Use send to call the private method
Reasoning:
Using send: The send method allows calling both public and private methods dynamically. By using send(:read_jwk, file), we explicitly call the private method read_jwk within the on method block.
Private Methods: The read_jwk method remains private, maintaining encapsulation, but it is called in a controlled manner.
Additional Notes
This solved the issue.
The text was updated successfully, but these errors were encountered:
@hugoib Thank you for finding the issue. It seems that the right approach to fix the issue is removing self. from self.read_jwk like this commit: 54552d8
I ran into errors while running the ./generate-dpop-proof script on Mac:
I modified the script here:
oid4vci-demo/generate-dpop-proof
Line 131 in a7ebb83
to:
@key = send(:read_jwk, file) # Use
send
to call the private methodReasoning:
Using send: The send method allows calling both public and private methods dynamically. By using send(:read_jwk, file), we explicitly call the private method read_jwk within the on method block.
Private Methods: The read_jwk method remains private, maintaining encapsulation, but it is called in a controlled manner.
Additional Notes
This solved the issue.
The text was updated successfully, but these errors were encountered: