Module: Chap::SpecialMethods::ClassMethods
- Defined in:
- lib/chap/special_methods.rb
Instance Method Summary collapse
-
#define_special_methods ⇒ Object
delegate to the config class.
Instance Method Details
#define_special_methods ⇒ Object
delegate to the config class
12 13 14 15 16 17 18 19 20 |
# File 'lib/chap/special_methods.rb', line 12 def define_special_methods SPECIAL_METHODS.each do |method| class_eval <<-EOL def #{method}(*args) @config.#{method}(*args) end EOL end end |