Sha256: 971ad218c3f071a68be6ffd3917d9906c179c79f423fb8a9bbb12e533bd340e5
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
class <%= controller_name %> < <%= controller_type %> extend IB attr_accessor <%= (options[:accessors] + options[:outlets].keys).collect{|acc| ":#{acc}"}.join(", ") %> <% if options[:outlets].length > 0 %> ## ib outlets <% options[:outlets].each do |name, type| -%> <% if type.empty? || type == "id" -%> ib_outlet :<%= name %> <% else -%> ib_outlet :<%= name %>, <%= type %> <% end -%> <% end -%> <% end -%> <% if options[:actions].length > 0 %> <% options[:actions].each do |action| -%> def <%= action %>(sender) # TODO Implement action here end <% end -%> ## ib actions <% options[:actions].each do |action| -%> ib_action :<%= action %> <% end -%> <% end -%> end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ib-0.1.2 | template/controller.erb |
ib-0.1.1 | template/controller.erb |