Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does an (experimental) class browser exist for Ruby?

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

like image 391
Erik Avatar asked Oct 17 '12 13:10

Erik


4 Answers

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).

like image 187
Tobias Avatar answered Nov 01 '22 05:11

Tobias


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.

like image 44
Stephan Eggermont Avatar answered Nov 01 '22 07:11

Stephan Eggermont


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

like image 2
knub Avatar answered Nov 01 '22 07:11

knub


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.)

like image 1
trans Avatar answered Nov 01 '22 05:11

trans