module FunWith::Configurations::ConfigOverriddenMethods

Public Class Methods

override_method( sym ) click to toggle source
# 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