Class: Alula::Environment

Inherits:
Sprockets::Environment
  • Object
show all
Defined in:
lib/alula/core_ext/environment.rb

Instance Method Summary collapse

Constructor Details

#initializeEnvironment

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

#usedObject



11
12
13
# File 'lib/alula/core_ext/environment.rb', line 11

def used
  @used.uniq
end