lib/card/set/loader.rb in card-1.20.2 vs lib/card/set/loader.rb in card-1.20.3
- old
+ new
@@ -62,16 +62,17 @@
if content =~ /\A#!\s?not? set module/
submodules.pop
else
submodules[-1] += " extend Card::Set"
end
- tmp_file_frame pattern, submodules, wrapped_content
+ tmp_file_frame pattern, submodules, wrapped_content, content_path
end
- def tmp_file_frame pattern, submodules, content
+ def tmp_file_frame pattern, submodules, content, content_path
<<-RUBY
# -*- encoding : utf-8 -*-
class Card; module Set; class #{pattern}; #{submodules.join ' '}
+ def self.source_location; "#{content_path}"; end
#{content}
end;end;end;#{'end;' * submodules.size}
RUBY
end