Gabz

SceneManager.call with arguments

Oct 21st, 2014
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.12 KB | None | 0 0
  1. class << SceneManager
  2.     def call(scene_class, *args)
  3.         @stack.push(@scene)
  4.         @scene = scene_class.new(*args)
  5.     end
  6. end
Advertisement
Add Comment
Please, Sign In to add comment