Class: Object

Inherits:
BasicObject
Defined in:
lib/motion/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#instance_eval(*args, &block) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/motion/core_ext.rb', line 42

def instance_eval(*args, &block)
  if block_given?
    instance_eval &block
  else
    Lotion.warn self.class.name, :instance_eval, caller
  end
end

#original_instance_evalObject



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

alias :original_instance_eval :instance_eval

#require(*args, &block) ⇒ Object



38
39
40
# File 'lib/motion/core_ext.rb', line 38

def require(*args, &block)
  Lotion.require args.first, caller
end