class LogStash::Filters::Ruby::Script::ExecutionContext

A blank area for our script to live in. Everything is instance_e{val,exec}'d against this to eliminate instance var and method def conflicts against other objects

Public Class Methods

new(name, logger) click to toggle source
# File lib/logstash/filters/ruby/script/execution_context.rb, line 6
def initialize(name, logger)
  # Namespaced with underscore so as not to conflict with anything the user sets
  @__name__ = name
  @__logger__ = logger
end

Public Instance Methods

logger() click to toggle source
# File lib/logstash/filters/ruby/script/execution_context.rb, line 12
def logger
  @__logger__
end
register(params) click to toggle source
# File lib/logstash/filters/ruby/script/execution_context.rb, line 16
def register(params)
  logger.debug("skipping register since the script didn't define it")
end
to_s() click to toggle source
# File lib/logstash/filters/ruby/script/execution_context.rb, line 20
def to_s
  "<ExecutionContext #{@__name__}>"
end