Sha256: ac6d2a234f57765d769ab620dea4ab6e56864f8e6be63fef086dbfb18a28b209

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

class <%= controller_name %> < <%= controller_type %>
  extend IB

  attr_accessor <%= options[:accessors].collect{|acc| ":#{acc}"}.join(", ") %>

<% if options[:outlets].length > 0 %>
  ## ib outlets
<% options[:outlets].each do |name, type| -%>
<% if type.empty? || type == "id" -%>
  outlet_accessor :<%= name %>
<% else -%>
  outlet_accessor :<%= name %>, <%= type %>
<% end -%>
<% end -%>
<% end -%>
<% if options[:actions].length > 0 %>

<% options[:actions].each do |action| -%>
  def <%= action %>(sender)
    # TODO Implement action here
  end
<% end -%>

<% end -%>

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ib-0.1.3 template/controller.erb