Class: GlimmerTetris::View::TetrisMenuBar

Inherits:
Object
  • Object
show all
Includes:
Glimmer::UI::CustomWidget
Defined in:
app/glimmer_tetris/view/tetris_menu_bar.rb

Constant Summary collapse

COMMAND_KEY =
OS.mac? ? :command : :ctrl

Instance Method Summary collapse

Instance Method Details

#parent_custom_shellObject



134
135
136
137
138
# File 'app/glimmer_tetris/view/tetris_menu_bar.rb', line 134

def parent_custom_shell
  # grab custom shell widget wrapping parent widget proxy (i.e. Tetris) and invoke method on it
  the_parent_custom_shell = parent_proxy&.get_data('custom_shell')
  the_parent_custom_shell if the_parent_custom_shell&.visible?
end