Class: Driver::Model
- Inherits:
-
Object
- Object
- Driver::Model
- Defined in:
- lib/driver/model.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api) ⇒ Model
constructor
A new instance of Model.
Constructor Details
#initialize(api) ⇒ Model
Returns a new instance of Model.
17 18 19 |
# File 'lib/driver/model.rb', line 17 def initialize(api) @api = api end |
Class Method Details
.method_missing(method) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/driver/model.rb', line 4 def method_missing(method) module_path = File.join( caller[1].split('/')[0..-2].join('/'), 'model', method.to_s ) Dir[File.join(module_path, '/**/*.rb')].each do |m| require m end end |