Method: Lookbook::Error#source_code_lines
- Defined in:
- lib/lookbook/error.rb
#source_code_lines ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/lookbook/error.rb', line 45 def source_code_lines if file_path || @source_code if @source_code @source_code.split("\n") else full_path = Rails.root.join(file_path) File.read(full_path).split("\n") if File.exist? full_path end end end |