From: Leo Date: 2009-04-09T00:42:39+09:00 Subject: Re: performing an action only the first time a function called > $directXSDKBootstrapped = false > > def bootstrapDirectXSDK >   if !$directXSDKBootstrapped >     bootstrapBuildToolsDirectory("DirectX/#{DIRECTX_VERSION}") >     $directXSDKBootstrapped = true >     $directXSDKBootstrapped.freeze >   end > end You could redefine bootstrapDirectXSDK: $directXSDKBootstrapped = false def bootstrapDirectXSDK bootstrapBuildToolsDirectory("DirectX/#{DIRECTX_VERSION}") $directXSDKBootstrapped = true $directXSDKBootstrapped.freeze def bootstrapDirectXSDK end end