Sha256: d0373b874f27d94bfc12a52ba4d5c92c37e1817c461869f0d69f9f70d1f45bbb

Contents?: true

Size: 683 Bytes

Versions: 9

Compression:

Stored size: 683 Bytes

Contents

# require 'rails/generators'
# module Hyperloop
#   class Router < Rails::Generators::Base
#     source_root File.expand_path('../templates', __FILE__)
#     argument :components, type: :array
#     def create_component_file
#       self.components.each do |component|
#         component_array = component.split('::')
#         @modules = component_array[0..-2]
#         @file_name = component_array.last
#         @indet = 1
#         template 'router_template.rb',
#                  File.join('app/views/components',
#                            @modules.map(&:downcase).join('/'),
#                            "#{@file_name.underscore}.rb")
#       end
#     end
#   end
# end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
hyperloop-0.5.8 lib/generators/hyper/router_generator.rb
hyperloop-0.5.6 lib/generators/hyper/router_generator.rb
hyperloop-0.5.5 lib/generators/hyper/router_generator.rb
hyperloop-0.5.4 lib/generators/hyper/router_generator.rb
hyperloop-0.5.1 lib/generators/hyper/router_generator.rb
hyperloop-0.5.0 lib/generators/hyper/router_generator.rb
hyper-rails-0.4.1 lib/generators/hyperloop/router_generator.rb
hyper-rails-0.4.0 lib/generators/hyperloop/router_generator.rb
hyper-rails-0.3.0 lib/generators/hyperloop/router_generator.rb