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 <<-EOS def #{sym}( *args, &block ) self.method_missing(:sym, *args, &block) end def #{sym}=( *args, &block ) self.method_missing( :#{sym}, *args, &block ) end EOS end |