Class: Avo::Loaders::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/avo/loaders/loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoader

Returns a new instance of Loader.



6
7
8
# File 'lib/avo/loaders/loader.rb', line 6

def initialize
  @bag = []
end

Instance Attribute Details

#bagObject

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