Class: MixinComment::Loader
- Inherits:
-
Object
- Object
- MixinComment::Loader
- Defined in:
- lib/mixin_comment/loader.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(dirs) ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
#initialize(dirs) ⇒ Loader
Returns a new instance of Loader.
5 6 7 |
# File 'lib/mixin_comment/loader.rb', line 5 def initialize(dirs) @dirs = Array(dirs) end |
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'lib/mixin_comment/loader.rb', line 9 def call load load_rails if defined? Rails end |