Class: LogStash::Filters::MathFunctions::Modulo

Inherits:
Object
  • Object
show all
Includes:
DivByZeroValidityCheck, Util::Loggable
Defined in:
lib/logstash/filters/math_functions.rb

Instance Method Summary collapse

Methods included from DivByZeroValidityCheck

#invalid?

Instance Method Details

#call(op1, op2) ⇒ Object



137
138
139
# File 'lib/logstash/filters/math_functions.rb', line 137

def call(op1, op2)
  op1 % op2
end

#nameObject



133
134
135
# File 'lib/logstash/filters/math_functions.rb', line 133

def name
  "modulo"
end