Class: HelperRouter
- Inherits:
-
Object
- Object
- HelperRouter
- Defined in:
- lib/shot_mvc/helper_router.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ HelperRouter
constructor
A new instance of HelperRouter.
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 |