Module: Synapse::Config::Emitting
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (protected)
5 6 7 8 9 10 |
# File 'lib/synapse/config/emitting.rb', line 5 def method_missing method, *args, &block mode = method=~/=$/ ? :write : :read emit mode do self.instance_variable_get("@#{@member}").send method, *args, &block end end |