From a96af8f0ff240db4e6a9c494e9de9290d885b9aa Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 6 Jul 2009 18:03:10 +0200 Subject: Fm.externally works without blocks too now. --- code/fm.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'code') diff --git a/code/fm.rb b/code/fm.rb index cb7dacb6..d6697eda 100644 --- a/code/fm.rb +++ b/code/fm.rb @@ -114,10 +114,8 @@ module Fm end def externally(&block) - return unless block_given? - closei - yield + yield if block_given? starti end -- cgit 1.4.1-2-gfad0