/*^* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * @software : berel * @version : 0.21 * @type : program * @date : 2018 * @license : GPLv3.0 * @author : a-Sansara <[dev]at[pluie]dot[org]> * @copyright : pluie.org * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This file is part of berel. * * berel is free software (free as in speech) : you can redistribute it * and/or modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the License, * or (at your option) any later version. * * berel is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with berel. If not, see . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *^*/ using GLib; using Pluie; /** * */ public class Pluie.Berel.Sepline : Yaml.Object { /** * */ public string motif { get; set; } /** * */ public int repeat { get; set; } /** * */ string? data { internal get; internal set; } /** * */ public string to_string () { if (this.data == null) { StringBuilder sb = new StringBuilder(""); for (var i = 0; i < this.repeat; i++) sb.append (this.motif); data = sb.str; } return this.data; } }