Class: RedStorm::SimpleTopology::Configurator
- Inherits:
-
Object
- Object
- RedStorm::SimpleTopology::Configurator
- Defined in:
- lib/red_storm/simple_topology.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
-
#initialize ⇒ Configurator
constructor
A new instance of Configurator.
- #method_missing(sym, *args) ⇒ Object
Constructor Details
#initialize ⇒ Configurator
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
59 60 61 |
# File 'lib/red_storm/simple_topology.rb', line 59 def config @config end |