Method: FileSource::Component#trimmed_source

Defined in:
app/components/lookbook/file_source/component.rb

#trimmed_sourceObject



21
22
23
24
25
26
27
# File 'app/components/lookbook/file_source/component.rb', line 21

def trimmed_source
  return unless source.present?

  from = start_line - 1
  to = end_line - 1
  source_lines[from..to].join("\n")
end