Class: Jetel::Loaders::Loader
- Inherits:
-
Object
- Object
- Jetel::Loaders::Loader
- Defined in:
- lib/jetel/loaders/loader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri) ⇒ Loader
constructor
A new instance of Loader.
- #load(modul, source, file, opts) ⇒ Object
Constructor Details
#initialize(uri) ⇒ Loader
Returns a new instance of Loader.
27 28 29 |
# File 'lib/jetel/loaders/loader.rb', line 27 def initialize(uri) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
26 27 28 |
# File 'lib/jetel/loaders/loader.rb', line 26 def uri @uri end |
Instance Method Details
#load(modul, source, file, opts) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/jetel/loaders/loader.rb', line 31 def load(modul, source, file, opts) { :file => file, :module => modul, :source => source } end |