Sha256: ff586b4970348814a6fd12ee5b929ce6e9642258de96ce7177faef57d16d81e2
Contents?: true
Size: 313 Bytes
Versions: 2
Compression:
Stored size: 313 Bytes
Contents
# frozen_string_literal: true <%= "# #{class_name}Policy class" %> <%= "class #{class_name}Policy" %> def initialize end <%= "end" if methods.count == 0 %> <%- methods.each do |method| -%> <%= "def #{method}?" %> <% if methods.last == method %> end end <% else %> end <%- end -%> <%- end -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
masina-0.1.9 | lib/generators/masina/policy/templates/policy.erb |
masina-0.1.8 | lib/generators/masina/policy/templates/policy.erb |