lib/sprockets/source_line.rb in sstephenson-sprockets-0.4.0 vs lib/sprockets/source_line.rb in sstephenson-sprockets-0.5.0

- old
+ new

@@ -30,9 +30,17 @@ def require? !!require end + def provide + @provide ||= (comment || "")[/^=\s+provide\s+\"(.*?)\"\s*$/, 1] + end + + def provide? + !!provide + end + def inspect "line #@number of #{@source_file.pathname}" end def to_s(constants = source_file.environment.constants)