carbon 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/carbon/emitter.rb +5 -5
- metadata +2 -2
data/lib/carbon/emitter.rb
CHANGED
@@ -9,11 +9,11 @@ module Carbon
|
|
9
9
|
target.extend Carbon::Emitter::ClassMethods
|
10
10
|
end
|
11
11
|
|
12
|
-
def
|
13
|
-
return @
|
14
|
-
@
|
15
|
-
@
|
16
|
-
@
|
12
|
+
def emission
|
13
|
+
return @emission unless @emission.nil?
|
14
|
+
@emission = Carbon::EmissionsCalculation.new(self.class.emitter_options, self)
|
15
|
+
@emission.calculate!
|
16
|
+
@emission
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|