Does an (experimental) class browser exist for Ruby?

1.1k Views Asked by At

Does an (experimental) class browser exist for Ruby?

I am talking about a class browser/editor combination similar to that of most Smalltalk implementations (i.e. focused on [runtime] classes/objects instead of .rb files)

Squeak Smalltalk Class Browser

P.S.: it looks like pry is already able to do a lot of the things that would be needed by a smalltalk style class browser? https://speakerdeck.com/u/rahult/p/pry-an-irb-alternative-on-steroids

P.S.2: Looks like the Seaside Smalltalk framework has a web browser based class browser

P.S.3: MagLev/Webtools is the closest I have found yet:

enter image description here

P.S.4: Apparently http://tibleiz.net/code-browser/index.html has Ruby support and is able to present a Smalltalk like class browser:

enter image description here

5

There are 5 best solutions below

0
On

I have no experience with it (and it is old), but may be rbbr still works.

1
On

There is. It is called Reflexive. https://github.com/dolzenko/reflexive

(I've never taken the time to try it though, so I am curious about other experiences with it.)

0
On

Check out the maglev/webtools project on github, as well as the rubymirrors gem. It already provides a class browser and workspace for multiple Ruby implementations, and a graphical debugger works on MagLev as well (not so much on MRI).

0
On

If you want to build one, the easiest would be to use MOOSE and build the browser with Glamour, on top of a Ruby parser written in PetitParser. Then you could use Pharo as your Ruby IDE.

0
On

You can have a look at the Maglev Database Explorer [1, 2] as well.

[1] Video: http://www.youtube.com/watch?v=27mS1BNP7wQ

[2] Gem: https://github.com/matthias-springer/maglev-database-explorer-gem