Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Namespace StackItem under Timecop so that we don't pollute the top-le…

…vel namespace.
  • Loading branch information...
commit a673a17a70d49d55975ba23e53d5a739fe0cbbfb 1 parent afeee45
@jtrupiano jtrupiano authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 lib/timecop/stack_item.rb
View
17 lib/timecop/stack_item.rb
@@ -1,11 +1,12 @@
-# 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 #:nodoc:
+class Timecop
+ # 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 #:nodoc:
- 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
+ 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
-end
-
+end
Please sign in to comment.
Something went wrong with that request. Please try again.