Module: Kernel

Defined in:
motion/logger.rb,
motion/core_ext/kernel/singleton_class.rb

Instance Method Summary collapse

Instance Method Details

#class_eval(*args, &block) ⇒ Object

class_eval on an object acts like singleton_class.class_eval.



3
4
5
# File 'motion/core_ext/kernel/singleton_class.rb', line 3

def class_eval(*args, &block)
  singleton_class.class_eval(*args, &block)
end

#l(*args) ⇒ Object



6
7
8
# File 'motion/logger.rb', line 6

def l(*args)
  MotionSupport.logger.log(args.map { |a| a.inspect })
end

#log(*args) ⇒ Object



2
3
4
# File 'motion/logger.rb', line 2

def log(*args)
  MotionSupport.logger.log(*args)
end