Sha256: fedf73ac3c6d384f24d925ce0df4caad5228515380a76d4b678d700821c7038c

Contents?: true

Size: 312 Bytes

Versions: 2

Compression:

Stored size: 312 Bytes

Contents

module Railsstrap
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railsstrap-4.0.0.beta3 lib/railsstrap/classes/stack.rb
railsstrap-4.0.0.beta2 lib/railsstrap/classes/stack.rb