.* is a helper method added by hobo to Iterable classes (such as Array,
Hash, etc.). It basically says, call the following method on each element
in the iterable and return the resultant array. Functionally equivalent
version: collection.*.method => collection.collect { |item| item.method }
On Thursday, June 20, 2013 5:01:59 PM UTC-6, Tim Kuo wrote:
>
> Newbie question: In the "Hobo Scopes" part of the Hobo Manual,
> what does the ".*." idiom (without the double-quotes) mean?
>
> >> Person.find_all_by_name("Bryan").*.name
> => ["Bryan"]
>
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.