Collection object methods that are (i) public and (ii) that don't require arguments should technically be usable in templates. For example, calling #empty? on an array object should produce the expected result. This is not the case presently because collection objects such as arrays or hashes don't have their attributes resolved in templates. Let's fix that.
Description
Collection object methods that are (i) public and (ii) that don't require arguments should technically be usable in templates. For example, calling
#empty?
on an array object should produce the expected result. This is not the case presently because collection objects such as arrays or hashes don't have their attributes resolved in templates. Let's fix that.