alainravet/private_please

View on GitHub
lib/private_please/utils/two_level_stack.rb

Summary

Maintainability
A
0 mins
Test Coverage
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