Class: Array
Instance Method Summary collapse
- #any? ⇒ Boolean
- #invoke(*args) ⇒ Object (also: #send_all, #pluck)
- #invoke!(*args) ⇒ Object (also: #send_all!, #pluck!)
Instance Method Details
#any? ⇒ Boolean
38 |
# File 'lib/ayril/core_ext/core_ext.rb', line 38 def any?; not self.empty? end |
#invoke(*args) ⇒ Object Also known as: send_all, pluck
39 |
# File 'lib/ayril/core_ext/core_ext.rb', line 39 def invoke(*args) self.map { |item| item.send *args } end |
#invoke!(*args) ⇒ Object Also known as: send_all!, pluck!
40 |
# File 'lib/ayril/core_ext/core_ext.rb', line 40 def invoke!(*args) self.map! { |item| item.send *args } end |