Class: Module

Inherits:
Object show all
Defined in:
lib/motion/core_ext.rb

Instance Method Summary collapse

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_evalObject



8
# File 'lib/motion/core_ext.rb', line 8

alias :original_class_eval :class_eval

#original_module_evalObject



16
# File 'lib/motion/core_ext.rb', line 16

alias :original_module_eval :module_eval