Sha256: e651d4ed95e1f8f5a92bf56d4cc91c084f78833701e8585c7aa7202ba6cb7929

Contents?: true

Size: 422 Bytes

Versions: 5

Compression:

Stored size: 422 Bytes

Contents

# Simply a data class for carrying around "time movement" objects.  Makes it easy to keep track of the time
# movements on a simple stack.
class StackItem
  
  attr_reader :mock_type, :year, :month, :day, :hour, :minute, :second
  def initialize(mock_type, year, month, day, hour, minute, second)
    @mock_type, @year, @month, @day, @hour, @minute, @second = mock_type, year, month, day, hour, minute, second
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jtrupiano-timecop-0.2.0 lib/timecop/stack_item.rb
jtrupiano-timecop-0.2.1 lib/timecop/stack_item.rb
timecop-0.0.99 lib/timecop/stack_item.rb
timecop-0.2.1 lib/timecop/stack_item.rb
timecop-0.2.0 lib/timecop/stack_item.rb