Class: RedStorm::SimpleTopology::Configurator

Inherits:
Object
  • Object
show all
Defined in:
lib/red_storm/simple_topology.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfigurator

Returns a new instance of Configurator.



61
62
63
# File 'lib/red_storm/simple_topology.rb', line 61

def initialize
  @config = Config.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



65
66
67
68
# File 'lib/red_storm/simple_topology.rb', line 65

def method_missing(sym, *args)
  config_method = "set#{self.class.camel_case(sym)}"
  @config.send(config_method, *args)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



59
60
61
# File 'lib/red_storm/simple_topology.rb', line 59

def config
  @config
end