class Lamby::Configuration

Public Class Methods

new() click to toggle source
# File lib/lamby/config.rb, line 23
def initialize
  initialize_defaults
end

Public Instance Methods

event_bridge_handler() click to toggle source
# File lib/lamby/config.rb, line 38
def event_bridge_handler
  @event_bridge_handler
end
event_bridge_handler=(func) click to toggle source
# File lib/lamby/config.rb, line 42
def event_bridge_handler=(func)
  @event_bridge_handler = func
end
initialize_defaults() click to toggle source
# File lib/lamby/config.rb, line 34
def initialize_defaults
  @event_bridge_handler = lambda { |event, context| puts(event) }
end
reconfigure() { |self| ... } click to toggle source
# File lib/lamby/config.rb, line 27
def reconfigure
  instance_variables.each { |var| instance_variable_set var, nil }
  initialize_defaults
  yield(self) if block_given?
  self
end
runner_patterns() click to toggle source
# File lib/lamby/config.rb, line 46
def runner_patterns
  Runner::PATTERNS
end