Advertisement
Rakoonic

Globals replacement

Sep 8th, 2013
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. --------------------------------------------------------------
  2. -- GLOBALS REPLACEMENT ---------------------------------------
  3.  
  4. -- Set up
  5. local class = {}
  6.  
  7. -- Display all globals
  8. function class:show()
  9.  
  10.     for k, v in pairs( self ) do
  11.         print( k, v )
  12.     end
  13.    
  14. end
  15.  
  16. -- Return value
  17. return class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement