Class: DashOverlord::Requirable::Base
- Inherits:
-
Object
- Object
- DashOverlord::Requirable::Base
- Defined in:
- lib/dash_overlord/requirable.rb
Instance Attribute Summary collapse
-
#before_load_paths ⇒ Object
Returns the value of attribute before_load_paths.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #register(path) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/dash_overlord/requirable.rb', line 9 def initialize @before_load_paths = [] end |
Instance Attribute Details
#before_load_paths ⇒ Object
Returns the value of attribute before_load_paths.
7 8 9 |
# File 'lib/dash_overlord/requirable.rb', line 7 def before_load_paths @before_load_paths end |
Instance Method Details
#register(path) ⇒ Object
13 14 15 |
# File 'lib/dash_overlord/requirable.rb', line 13 def register path @before_load_paths << path end |