Class: Nocode::Util::ClassLoader
- Inherits:
-
Object
- Object
- Nocode::Util::ClassLoader
- Defined in:
- lib/nocode/util/class_loader.rb
Overview
Loads a directory full of Ruby classes and returns their relative paths.
Constant Summary collapse
- EXTENSION =
'.rb'
Instance Attribute Summary collapse
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
Instance Method Summary collapse
-
#initialize(dir) ⇒ ClassLoader
constructor
A new instance of ClassLoader.
- #load! ⇒ Object
Constructor Details
#initialize(dir) ⇒ ClassLoader
Returns a new instance of ClassLoader.
11 12 13 14 15 |
# File 'lib/nocode/util/class_loader.rb', line 11 def initialize(dir) @dir = dir freeze end |
Instance Attribute Details
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
9 10 11 |
# File 'lib/nocode/util/class_loader.rb', line 9 def dir @dir end |