# File lib/weave.rb, line 19 def initialize lib_name @file_name = Library.find_lib(lib_name) @hdl = Weave::FFI.dlopen @file_name @opened = true if (block_given?) # this doesn't make sense, because ruby will crash at best if # if we try to call a symbol that's in a closed lib. yield self self.close end end