Module: FunWith::Configurations::ConfigOverriddenMethods
- Included in:
- Config
- Defined in:
- lib/fun_with/configurations/config.rb
Class Method Summary collapse
Class Method Details
.override_method(sym) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fun_with/configurations/config.rb', line 10 def self.override_method( sym ) eval " def \#{sym}( *args, &block )\n self.method_missing(:sym, *args, &block)\n end\n \n def \#{sym}=( *args, &block )\n self.method_missing( :\#{sym}, *args, &block )\n end\n EOS\nend\n" |