Sha256: 909e19a8263b9a4a17764fc1a62196de3d4f6b9ab33b77e93104fe7b22c64b5d

Contents?: true

Size: 437 Bytes

Versions: 14

Compression:

Stored size: 437 Bytes

Contents

class <%= guard_class_name %>Guard
  def initialize(guard)
    #guard.name = "<%= plural_file_name %>"
<% if aliases -%>
    guard.aliases = <%= aliases.inspect %>
<% end -%>
    guard.action_map= {
<% case actions
   when Array
     for action in actions -%>
       :<%= action %> => [],
<%   end 
   when Hash
     actions.each do |action, groups| -%>
      :<%= action %> => <%= groups.inspect %>,
<%   end
   end -%>
    }
  end
end

Version data entries

14 entries across 11 versions & 1 rubygems

Version Path
ixtlan-guard-0.9.0 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.8.3 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.8.2 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.8.1 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.8.0 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.7.2 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.7.0 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.6.1 lib/generators/guard/templates/guard.yml~
ixtlan-guard-0.5.0 lib/generators/guard/templates/guard.rb
ixtlan-guard-0.5.0 lib/generators/guard/scaffold/templates/guard.rb
ixtlan-guard-0.4.1 lib/generators/guard/templates/guard.rb
ixtlan-guard-0.4.1 lib/generators/guard/scaffold/templates/guard.rb
ixtlan-guard-0.4.0 lib/generators/guard/scaffold/templates/guard.rb
ixtlan-guard-0.4.0 lib/generators/guard/templates/guard.rb