Fullscreen/bh

View on GitHub
lib/bh/classes/stack.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Bh
  module Classes
    class Stack
      @@stack = []

      def self.unshift(item)
        @@stack.unshift item
      end

      def self.shift
        @@stack.shift
      end

      def self.find(helper_class)
        @@stack.find{|helper| helper.is_a? helper_class}
      end
    end
  end
end