Sha256: 00745b65182c4bd86aa06a485117ccd09be3f142d4c22014dc39f526a1c37b76

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

require "minuteman/time_spans"

# Public: Minuteman core classs
#
class Minuteman
  module TimeEvents
    # Public: Helper to get all the time trackers ready
    #
    #   event_name - The event to be tracked
    #   date       - A given Time object
    #
    def self.start(time_spans, event_name, time)
      time_spans.map do |t|
        t.new(event_name, time)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minuteman-1.0.3 lib/minuteman/time_events.rb