calls now accept codeblocks - lets call this version 1.0.0

This commit is contained in:
danijoo
2014-01-01 19:59:06 +01:00
parent 466d0e8f66
commit dc6d037768
8 changed files with 62 additions and 12 deletions

View File

@@ -29,7 +29,11 @@ class TeamModule < SightstoneBaseModule
data.each do |team|
teams << Team.new(team)
end
return teams
if block_given?
yield teams
else
return teams
end
}
end