public abstract class GirBase : GirObject {
public abstract void 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 : "";
+
+ }
}
public class Gir : GirBase {
base("Package",ns);
}
- 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 : "";
-
- }
+