- public class GirFile : GirBase {
+ public class Gir : GirObject {
- public GirFile (string ns)
+ public Gir (string ns)
{
base(ns);
this.load();
}
+
+ public string doc(string what)
+ {
+ var ar = what.split(".");
+ var cls = this.classes.get(ar[1]);
+ if (ar.length == 2) {
+ return cls.doctxt != null ? cls.doctxt : "";
+ }
+ // return the property.. by default..
+ var pr = cls.props.get(ar[2]);
+ return pr.doctxt != null ? pr.doctxt : "";
+
+ }