Class: Alula::Environment
- Inherits:
-
Sprockets::Environment
- Object
- Sprockets::Environment
- Alula::Environment
- Defined in:
- lib/alula/core_ext/environment.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize ⇒ Environment
constructor
A new instance of Environment.
- #used ⇒ Object
Constructor Details
#initialize ⇒ Environment
Returns a new instance of Environment.
5 6 7 8 9 |
# File 'lib/alula/core_ext/environment.rb', line 5 def initialize super @used = [] end |
Instance Method Details
#[](key) ⇒ Object
15 16 17 18 |
# File 'lib/alula/core_ext/environment.rb', line 15 def [](key) @used << key super end |
#used ⇒ Object
11 12 13 |
# File 'lib/alula/core_ext/environment.rb', line 11 def used @used.uniq end |