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_register_context = nil) ⇒ Object
-
#initialize(literal, position) ⇒ LiteralElement
constructor
does not support ‘set`.
- #inspect ⇒ Object
- #key ⇒ Object
- #literal? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(literal, position) ⇒ LiteralElement
does not support ‘set`
114 115 116 117 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 114 def initialize(literal, position) @literal = literal @position = position end |
Instance Method Details
#get(event_register_context = nil) ⇒ Object
127 128 129 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 127 def get(event_register_context = nil) @literal end |
#inspect ⇒ Object
131 132 133 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 131 def inspect "\"operand #{@position}: #{@literal.inspect}\"" end |
#key ⇒ Object
119 120 121 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 119 def key nil end |
#literal? ⇒ Boolean
123 124 125 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 123 def literal? true end |
#to_s ⇒ Object
135 136 137 |
# File 'lib/logstash/filters/math_calculation_elements.rb', line 135 def to_s inspect end |