Sha256: db35df79a31fbcbe0c108af7a33a736ec0c278b3bd2dc50ddd2b9bd30fedb2c8

Contents?: true

Size: 217 Bytes

Versions: 3

Compression:

Stored size: 217 Bytes

Contents

module PrivatePlease
  module Utils
    class TwoLevelStack
      def push(value)
        @cell_2 = @cell_1
        @cell_1 = value
      end

      def curr; @cell_1 end
      def prev; @cell_2 end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
private_please-0.1.2 lib/private_please/utils/two_level_stack.rb
private_please-0.1.1 lib/private_please/utils/two_level_stack.rb
private_please-0.1.0 lib/private_please/utils/two_level_stack.rb