Sha256: aa3a099898878a6452943647074340805d55fbee1d23a189b89ce8abdc53dd41
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true require 'pathname' module FFI module Libfuse module Adapter # Wrapper module to convert first path argument of callback methods to a {::Pathname} module Pathname # @!visibility private def fuse_wrappers(*wrappers) wrappers << { wrapper: proc { |_fuse_method, path, *args, &b| b.call(::Pathname.new(path), *args) }, excludes: %i[init destroy] } return wrappers unless defined?(super) super end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffi-libfuse-0.4.1 | lib/ffi/libfuse/adapter/pathname.rb |