File indexing completed on 2025-02-09 04:28:27

0001 #! /usr/bin/env ruby
0002 
0003 {% include licence|append:".rb" %}
0004 
0005 require 'Qt4'
0006 
0007 class {{ className }} {% if baseClass %} < {{ baseClass.type }}{% endif %}
0008 
0009 {% for property in properties %}
0010   {% if property.readonly %}
0011     attr_reader :{{property.name}}
0012   {% else %}
0013     attr_accessor :{{property.name}}
0014   {% endif %}
0015 
0016 {% endfor %}
0017     def initialize
0018         super
0019     end
0020 
0021 {% with "true" as default %}
0022   {% for method in methods %}
0023     def {{ method.name }}{% if method.args %}({% include "args.rb" %}){% endif %}
0024     end
0025 
0026   {% endfor %}
0027 {% endwith %}
0028 end