Class: Module
Instance Method Summary collapse
- #class_eval(*args, &block) ⇒ Object
- #module_eval(*args, &block) ⇒ Object
- #original_class_eval ⇒ Object
- #original_module_eval ⇒ Object
Instance Method Details
#class_eval(*args, &block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/motion/core_ext.rb', line 9 def class_eval(*args, &block) if block_given? original_class_eval &block else Lotion.warn name, :class_eval, caller end end |
#module_eval(*args, &block) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/motion/core_ext.rb', line 17 def module_eval(*args, &block) if block_given? original_module_eval &block else Lotion.warn name, :module_eval, caller end end |
#original_class_eval ⇒ Object
8 |
# File 'lib/motion/core_ext.rb', line 8 alias :original_class_eval :class_eval |
#original_module_eval ⇒ Object
16 |
# File 'lib/motion/core_ext.rb', line 16 alias :original_module_eval :module_eval |