[gxml] Attr.vala: improve stringification
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gxml] Attr.vala: improve stringification
- Date: Tue, 24 Sep 2013 10:34:18 +0000 (UTC)
commit 93f3284473c017b5d6496111a732dc65b4e9a340
Author: Richard Schwarting <aquarichy gmail com>
Date:   Tue Sep 24 06:28:15 2013 -0400
    Attr.vala: improve stringification
 gxml/Attr.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gxml/Attr.vala b/gxml/Attr.vala
index 111df9d..466cd38 100644
--- a/gxml/Attr.vala
+++ b/gxml/Attr.vala
@@ -253,6 +253,13 @@ namespace GXml {
                public override Node? clone_node (bool deep) {
                        return this; // STUB
                }
+
+               /**
+                * { inheritDoc}
+                */
+               public override string to_string (bool format = false, int level = 0) {
+                       return "Attr(%s=\"%s\")".printf (this.name, this.value);
+               }
        }
 
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]