Module: Cantango::Generators::LicenseBase
- Included in:
- RolePermitGenerator
- Defined in:
- lib/generators/cantango/license_base.rb
Instance Method Summary collapse
Instance Method Details
#license_logic ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/cantango/license_base.rb', line 8 def license_logic return ' # use any licenses here' if licenses.empty? ls = licenses.map{|c| ":#{c}"}.join(", ") "licenses #{ls}" end |
#licenses ⇒ Object
4 5 6 |
# File 'lib/generators/cantango/license_base.rb', line 4 def licenses [:licenses] end |