Method: Daru::Core::Query.apply_scalar_operator
- Defined in:
- lib/daru/core/query.rb
.apply_scalar_operator(operator, data, other) ⇒ Object
41 42 43 |
# File 'lib/daru/core/query.rb', line 41 def apply_scalar_operator operator, data, other BoolArray.new(data.map { |d| !!d.send(operator, other) if d.respond_to?(operator) }) end |