lib/util/swig_helper.rb in qpid_proton-0.17.0 vs lib/util/swig_helper.rb in qpid_proton-0.18.0
- old
+ new
@@ -84,10 +84,10 @@
# Defines a method that calls an underlying C library function.
def proton_caller(name, options = {})
proton_method = "#{self::PROTON_METHOD_PREFIX}_#{name}"
# drop the trailing '?' if this is a property method
proton_method = proton_method[0..-2] if proton_method.end_with? "?"
- create_wrapper_method(name, proton_method)
+ create_wrapper_method(name, proton_method, options[:arg])
end
def proton_writer(name, options = {})
proton_method = "#{self::PROTON_METHOD_PREFIX}_set_#{name}"
create_wrapper_method("#{name}=", proton_method, true)