Method: Foxy::Collection#attr
- Defined in:
- lib/foxy/collection.rb
#attr(name) ⇒ Object
7 8 9 |
# File 'lib/foxy/collection.rb', line 7 def attr(name) each_with_object([]) { |node, acc| acc << node.attr(name) if node } end |
7 8 9 |
# File 'lib/foxy/collection.rb', line 7 def attr(name) each_with_object([]) { |node, acc| acc << node.attr(name) if node } end |