Sha256: 5b7946e17b371cf40ccd4bcc2961b67327c4ec57d60690715c301761feb59c80

Contents?: true

Size: 426 Bytes

Versions: 16

Compression:

Stored size: 426 Bytes

Contents

module Vedeu

  # This module can be included client application classes to provide various
  # further functionality and simplify Vedeu view construction.
  #
  # @api public
  module ViewHelpers

    # 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 # ViewHelpers

end # Vedeu

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
vedeu-0.4.54 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.53 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.52 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.51 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.50 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.49 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.48 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.47 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.46 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.45 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.44 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.43 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.42 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.41 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.40 lib/vedeu/output/view_helpers/view_helpers.rb
vedeu-0.4.39 lib/vedeu/output/view_helpers/view_helpers.rb