rock-core/tools-orocosrb — pull request #31 by planthaber (2014-11-25 08:30:52+00:00)
Title: each_task returns enumerator, in case no block is given

each_task now behaves properly, in case no block is given

As discussed here:
https://github.com/planthaber/rock-webapp/pull/17/files#r20803228

The following code part (checking if task was found) whould have beed doubled, by each task and assembling the Enumerator to return in case no block is given. So I added the new get_all function (needed for Enumerator creation anyways).

```ruby
names.each do |name|
task = begin
get(name)
rescue Orocos::NotFound
end
if task
all << task
end
end
```