+1 on the logic, but with a stylistic fix; chains like this should be
written fluent / comprehension style:
@value.
collect { |x| x.evaluate(scope) }.
collect { |val| val == :undef ? '' : val }.
join
In other words, you're just inserting:
collect { |val| val == :undef ? '' : val }.
in the pipe, and this should be clearer.
-- Markus
-----------------------------------------------------------
The power of accurate observation is
commonly called cynicism by those
who have not got it. ~George Bernard Shaw
------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.