Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

get_methods()

This is a simple method to get the methods of an object but print them in a readable form (the current obj.methods is rather difficult to read).

It is a bad script because I just edited a method I found on the Internet and removed the colour coding and justification. I just needed this for a project and thought I should share it just in case someone else finds need.




[pastebin]71[/pastebin]
 
I'm sure some will find it useful.
For some classes the list is so long, it doesn't fit on screen. I suggest writing the result into a text file.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top