lib/ffi/libfuse/callbacks.rb in ffi-libfuse-0.0.1.rctest12 vs lib/ffi/libfuse/callbacks.rb in ffi-libfuse-0.1.0.rc20220550
- old
+ new
@@ -35,10 +35,10 @@
private
def initialize_callbacks(callbacks, delegate:, wrappers: [])
callbacks.select { |m| respond_to_callback?(m, delegate) }.each do |m|
- register(m, wrappers) { |*f_args| delegate.send(m, *f_args) }
+ register(m, wrappers) { |*f_args| delegate.public_send(m, *f_args) }
end
end
def respond_to_callback?(method, delegate)
delegate.respond_to?(method)