Class: LogStash::Filters::MathCalculationElements::LiteralElement
- Inherits:
-
Object
- Object
- LogStash::Filters::MathCalculationElements::LiteralElement
- Defined in:
- lib/logstash/filters/math_calculation_elements.rb
Instance Method Summary collapse
- #get(event = nil) ⇒ Object
-
#initialize(literal, position) ⇒ LiteralElement
constructor
does not support ‘set`.
- #inspect ⇒ Object
- #literal? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(literal, position) ⇒ LiteralElement
does not support ‘set`
106 107 108 109 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 106 def initialize(literal, position) @literal = literal @position = position end |
Instance Method Details
#get(event = nil) ⇒ Object
115 116 117 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 115 def get(event = nil) @literal end |
#inspect ⇒ Object
119 120 121 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 119 def inspect "\"operand #{@position}: #{@literal.inspect}\"" end |
#literal? ⇒ Boolean
111 112 113 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 111 def literal? true end |
#to_s ⇒ Object
123 124 125 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 123 def to_s inspect end |