Closed vadtel closed 6 months ago
@cjlarose are you happy with the change? I would like to merge it and release it as 5.2.0
@vadtel tests are failing for Ruby 3.0. Would you mind having a look?
@vadtel tests are failing for Ruby 3.0. Would you mind having a look?
It depends on the ostruct
version
We don't create singleton methods for fields with exclamation marks (bangs) how return respond_to?(name, true)
- true
The method_missing method only returns nil in one version of Ruby
https://github.com/ruby/ostruct/commit/69cbbefd997f74b99b5135db8b9ef1ba97a31b43
May be we need to return "exit!" to constant?
May be we need to return "exit!" to constant?
Yeah, possibly this would be the easiest solution. @cjlarose wdyt?
Waiting for the feedback from @cjlarose before we merge it in and release it. Hopefully soon...
Released with version 5.2.0
I caught error when accessing an option named
lambda
The methods used to access options are always public, so there is no need to use send. Using send can cause problems because it can call private and protected methods of the base classes. I replaced send with public_send. This will avoid the problems caused by send calling private and protected methods.