Sha256: 6b36f0cf461ad815468c3dda8a129a4cebd7bfe75d0e6331a3465b1fdc9a48ea
Contents?: true
Size: 654 Bytes
Versions: 62
Compression:
Stored size: 654 Bytes
Contents
module Sprockets class SourceFile def source_lines @lines ||= begin lines = [] comments = [] File.open(pathname.absolute_location, 'rb') do |file| file.each do |line| lines << line = SourceLine.new(self, line, file.lineno) if line.begins_pdoc_comment? || comments.any? comments << line end if line.ends_multiline_comment? if line.ends_pdoc_comment? comments.each { |l| l.comment! } end comments.clear end end end lines end end end end
Version data entries
62 entries across 62 versions & 2 rubygems