Sha256: 77e71ebe46e2a65032b5ae35ecd0ff115a51274c3ca71e2b15a1c4294191a775
Contents?: true
Size: 412 Bytes
Versions: 20
Compression:
Stored size: 412 Bytes
Contents
module GirFFI # Generates method stubs that will replace themselves with the real # method upon being called. class MethodStubber def initialize method_info @info = method_info end def method_stub symbol = @info.name " def #{@info.method? ? '' : 'self.'}#{symbol} *args, &block setup_and_call :#{symbol}, *args, &block end " end end end
Version data entries
20 entries across 20 versions & 1 rubygems