Class: Avo::Loaders::Loader
- Inherits:
-
Object
- Object
- Avo::Loaders::Loader
- Defined in:
- lib/avo/loaders/loader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bag ⇒ Object
Returns the value of attribute bag.
Instance Method Summary collapse
-
#initialize ⇒ Loader
constructor
A new instance of Loader.
- #use(klass) ⇒ Object
Constructor Details
#initialize ⇒ Loader
Returns a new instance of Loader.
6 7 8 |
# File 'lib/avo/loaders/loader.rb', line 6 def initialize @bag = [] end |
Instance Attribute Details
#bag ⇒ Object
Returns the value of attribute bag.
4 5 6 |
# File 'lib/avo/loaders/loader.rb', line 4 def bag @bag end |
Instance Method Details
#use(klass) ⇒ Object
10 11 12 |
# File 'lib/avo/loaders/loader.rb', line 10 def use(klass) @bag.push klass end |