Skip to content

Instantly share code, notes, and snippets.

@kiko
Created December 22, 2009 11:22
Show Gist options
  • Save kiko/261687 to your computer and use it in GitHub Desktop.
Save kiko/261687 to your computer and use it in GitHub Desktop.
def swap_screen(s1, s2)
puts 'swap_screen'
current_view.clients.each do |c|
c.screen = (c.screen.id == s1) ? s2 : s1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment