First, the preface
IronRuby is a ruby implementation in. NET, and ruby.net this Open-source project, the main difference is that IronRuby leverages Microsoft's newest DLR, while Ruby.net is fully leveraging the original CLR implementations. IronRuby can be found in http://msdn.microsoft.com/zh-cn/magazine/dd434651.aspx. Some basic operations on IronRuby, which are not covered in this article, are just a concrete example of IronRuby to Ruby operations. This includes the tree structure for the class name of all Ruby classes, the method name, and the fetch and display of the parameter list. The reason for this is to use IronRuby to operate, mainly because the reflection of Ruby can get to the list of Ruby method names, but not to get the parameter list and parameter name of the method. This article is for reference only, because I also ironruby contact is not very long, basically is groping out, will inevitably have the wrong place.
Second, class diagram design
The related class diagram is designed as follows, in which Rubyscriptengine is mainly responsible for acquiring and constructing the related class name, method name and parameter list, and the correlation between the IronRuby. Treedrawer is mainly responsible for the design of the class name, method name and parameter list corresponding to the tree-shaped chart.