Module: FunWith::Configurations::ConfigOverriddenMethods
- Included in:
- Config
- Defined in:
- lib/fun_with/configurations/config_overridden_methods.rb
Class Method Summary collapse
Class Method Details
.override_method(sym) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/fun_with/configurations/config_overridden_methods.rb', line 4 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" |