Module: Dex::UI::Frame::FrameStack
- Defined in:
- lib/dex/ui/frame.rb
Constant Summary collapse
- ENVVAR =
'DEX_FRAME_STACK'
Class Method Summary collapse
Class Method Details
.items ⇒ Object
146 147 148 |
# File 'lib/dex/ui/frame.rb', line 146 def self.items ENV.fetch(ENVVAR, '').split(':').map(&:to_sym) end |
.pop ⇒ Object
156 157 158 159 160 161 |
# 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) ⇒ Object
150 151 152 153 154 |
# File 'lib/dex/ui/frame.rb', line 150 def self.push(item) curr = items curr << item.name ENV[ENVVAR] = curr.join(':') end |