lib/ffi/libfuse/fuse_conn_info.rb in ffi-libfuse-0.4.0 vs lib/ffi/libfuse/fuse_conn_info.rb in ffi-libfuse-0.4.1
- old
+ new
@@ -324,10 +324,10 @@
# @overload want(**capabilities)
# @param [Hash<Symbol,Boolean>] capabilities map of capability names to whether they are explicitly wanted
# or unwanted
# @return [Array<Symbol>]
# @see capable
- ffi_attr_reader(:want, simple: false) do |*caps, **h|
+ ffi_attr_reader_method(:want) do |*caps, **h|
next self[:want] if caps.empty? && h.empty?
h.merge!(caps.pop) if caps.last.is_a?(Hash)
add, del = h.keys.partition { |c| h[c] }
self[:want] = (self[:want] - del + add + caps)