On Mon, Nov 23, 2015 at 11:50 PM, Craig L Russell
<[email protected]> wrote:
> I’m not an expert in ruby or this library, but the result of
>
>  ldap = ASF::Person.list.map(&:id)
>
> is an empty array if LDAP isn’t reachable. Does map work on nil?

Nope:

$ irb
irb(main):001:0> nil.map
NoMethodError: undefined method `map' for nil:NilClass
    from (irb):1
    from /usr/bin/irb:12:in `<main>'

- Sam Ruby

Reply via email to