Sha256: ad39841d8773cbac94ab565781be6a7350aad3a6ede0847e7ea3092f4778597b
Contents?: true
Size: 848 Bytes
Versions: 8
Compression:
Stored size: 848 Bytes
Contents
module RbGCCXML class Method < Function # Specifies a default return value for the # virtual method wrapper that rb++ will build # for this method. # # This will be needed in the situation where you # have a Ruby wrapped class where a C++ method calls # another method on the same object that's polymorphic. # Rice is unable to figure out the correct path to take, # and usually ends up trying to go back up the chain, # throwing the NotImplementedError. # # Specifying this option will turn the throw line into # a return line. # # See director_test's use of do_process_impl for an # example of this functionality. def default_return_value(value = nil) if value @default_return_value = value else @default_return_value end end end end
Version data entries
8 entries across 8 versions & 1 rubygems