module Dex::UI::Frame::FrameStack
Constants
- ENVVAR
Public Class Methods
items()
click to toggle source
# File lib/dex/ui/frame.rb, line 146 def self.items ENV.fetch(ENVVAR, '').split(':').map(&:to_sym) end
pop()
click to toggle source
# File lib/dex/ui/frame.rb, line 156 def self.pop curr = items ret = curr.pop ENV[ENVVAR] = curr.join(':') ret.nil? ? nil : ret.to_sym end
push(item)
click to toggle source
# File lib/dex/ui/frame.rb, line 150 def self.push(item) curr = items curr << item.name ENV[ENVVAR] = curr.join(':') end