projects
/
ruby-cruxutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbca442
)
Made CruxUtils::Port.open return the port.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 29 Sep 2006 15:31:15 +0000
(17:31 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 29 Sep 2006 15:31:15 +0000
(17:31 +0200)
lib/cruxutils/port.rb
patch
|
blob
|
history
diff --git
a/lib/cruxutils/port.rb
b/lib/cruxutils/port.rb
index 0e84fa57daa2ae21cdca40865972e066750cd66f..ecc111334e176af841b283efe5fcd8ada0033f0f 100644
(file)
--- a/
lib/cruxutils/port.rb
+++ b/
lib/cruxutils/port.rb
@@
-15,7
+15,9
@@
class Port
COMMENT_MAP["Nice to have"] = :nice_to_have
def Port.open(dir)
- yield Port.new(dir)
+ tmp = Port.new(dir)
+ yield tmp
+ tmp
end
def initialize(dir)