Module: VueApp::Core::Helpers::Log
- Included in:
- Builder, Builders::JsBuilder, Listener
- Defined in:
- lib/vueapp/core/helpers/log.rb
Overview
Add log method
Instance Method Summary collapse
-
#log(str) ⇒ Object
Logger method: puts string with timestamp.
Instance Method Details
#log(str) ⇒ Object
Logger method: puts string with timestamp
10 11 12 |
# File 'lib/vueapp/core/helpers/log.rb', line 10 def log(str) puts Time.now.strftime('%-d %b %Y [%H:%M:%S]: ').style(:green) + str end |