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 <<-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 |