Module: Vedeu::View

Included in:
ApplicationView, Templating::Helpers
Defined in:
lib/vedeu/application/view.rb

Overview

Provides methods to be used by ApplicationView.

Instance Method Summary collapse

Instance Method Details

#time_nowString

Returns the current local time.

Examples:

time_now # => Mon 29 Jun 19:26

Returns:

  • (String)


15
16
17
# File 'lib/vedeu/application/view.rb', line 15

def time_now
  Time.now.strftime('%a %e %b %k:%M')
end