Sha256: 4aad3df9fa166f5ceef47f71a466ce5500ac1c62c2337702e0945c936a0607a0
Contents?: true
Size: 578 Bytes
Versions: 31
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module Synvert::Core # Warning is used to save warning message. class Rewriter::Warning # Initialize a Warning. # # @param instance [Synvert::Core::Rewriter::Instance] # @param message [String] warning message. def initialize(instance, message) @file_path = instance.current_file @line = instance.current_node.loc.expression.line @message = message end # Warning message. # # @return [String] warning message. def message "#{@file_path}##{@line}: #{@message}" end end end
Version data entries
31 entries across 31 versions & 1 rubygems