Method: ActiveSupport::Configurable::Configuration.compile_methods!
- Defined in:
- activesupport/lib/active_support/configurable.rb
.compile_methods!(keys) ⇒ Object
Compiles reader methods so we don’t have to go through method_missing.
20 21 22 23 24 25 26 |
# File 'activesupport/lib/active_support/configurable.rb', line 20 def self.compile_methods!(keys) keys.reject { |m| method_defined?(m) }.each do |key| class_eval " def \#{key}; _get(\#{key.inspect}); end\n RUBY\n end\nend\n", __FILE__, __LINE__ + 1 |