Sha256: da226b4d3a7d02b36ee1fce6add1f0dae00a12dcbc7834fe2c1808ea02a8137c

Contents?: true

Size: 346 Bytes

Versions: 31

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  # Provides methods to be used by {Vedeu::ApplicationView}.
  #
  module View

    # Returns the current local time.
    #
    # @example
    #   time_now # => Mon 29 Jun 19:26
    #
    # @return [String]
    def time_now
      Time.now.strftime('%a %e %b %k:%M')
    end

  end # View

end # Vedeu

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
vedeu-0.8.32 lib/vedeu/application/view.rb
vedeu-0.8.31 lib/vedeu/application/view.rb
vedeu-0.8.30 lib/vedeu/application/view.rb
vedeu-0.8.29 lib/vedeu/application/view.rb
vedeu-0.8.28 lib/vedeu/application/view.rb
vedeu-0.8.27 lib/vedeu/application/view.rb
vedeu-0.8.26 lib/vedeu/application/view.rb
vedeu-0.8.25 lib/vedeu/application/view.rb
vedeu-0.8.24 lib/vedeu/application/view.rb
vedeu-0.8.23 lib/vedeu/application/view.rb
vedeu-0.8.22 lib/vedeu/application/view.rb
vedeu-0.8.21 lib/vedeu/application/view.rb
vedeu-0.8.20 lib/vedeu/application/view.rb
vedeu-0.8.19 lib/vedeu/application/view.rb
vedeu-0.8.18 lib/vedeu/application/view.rb
vedeu-0.8.17 lib/vedeu/application/view.rb
vedeu-0.8.16 lib/vedeu/application/view.rb
vedeu-0.8.15 lib/vedeu/application/view.rb
vedeu-0.8.14 lib/vedeu/application/view.rb
vedeu-0.8.13 lib/vedeu/application/view.rb