Sha256: 4484edd404983996fefae6189daef00748b559a5a6e515b6e0f2631f4f3a408a

Contents?: true

Size: 133 Bytes

Versions: 16

Compression:

Stored size: 133 Bytes

Contents

def weekend?(time)
  [0, 6].member?(time.wday)
end

def monday_after(time)
  8.hours.after(1.week.after(time.beginning_of_week))
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre templates/new-instance/lib/time_helpers.rb
houston-core-0.7.0 templates/new-instance/lib/time_helpers.rb
houston-core-0.7.0.beta4 templates/new-instance/lib/time_helpers.rb
houston-core-0.7.0.beta3 templates/new-instance/lib/time_helpers.rb
houston-core-0.7.0.beta2 templates/new-instance/lib/time_helpers.rb
houston-core-0.7.0.beta templates/new-instance/lib/time_helpers.rb
houston-core-0.6.3 templates/new-instance/lib/time_helpers.rb
houston-core-0.6.2 templates/new-instance/lib/time_helpers.rb
houston-core-0.6.1 templates/new-instance/lib/time_helpers.rb
houston-core-0.6.0 templates/new-instance/lib/time_helpers.rb
houston-core-0.5.6 templates/new-instance/lib/time_helpers.rb
houston-core-0.5.5 templates/new-instance/lib/time_helpers.rb
houston-core-0.5.4 templates/new-instance/lib/time_helpers.rb
houston-core-0.5.3 templates/new-instance/lib/time_helpers.rb
houston-core-0.5.2 templates/new-instance/lib/time_helpers.rb
houston-core-0.5.1 templates/new-instance/lib/time_helpers.rb