Class: HelperRouter

Inherits:
Object
  • Object
show all
Defined in:
lib/shot_mvc/helper_router.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ HelperRouter

Returns a new instance of HelperRouter.



2
3
4
5
6
# File 'lib/shot_mvc/helper_router.rb', line 2

def initialize(client)
  if Dir.exists? "app/helpers"
    Dir.new("app/helpers").each do |helper_file| require_relative "./app/helpers/#{helper_file}" end
  end
end