class Epuber::Compiler::FileFinders::MultipleFilesFoundError
Attributes
@return [String]
@return [Array<String>]
@return [Array<Symbol>]
@return [String]
Public Class Methods
Source
# File lib/epuber/compiler/file_finders/abstract.rb, line 52 def initialize(pattern, groups, context_path, files_paths) super() @pattern = pattern @groups = Array(groups) @context_path = context_path @files_paths = files_paths end
@param [String] pattern original pattern for searching @param [Array<Symbol> | Symbol] groups list of groups @param [String] context_path
context path of current searching @param [Array<String>] files_paths
list of founded files
Calls superclass method
Public Instance Methods
Source
# File lib/epuber/compiler/file_finders/abstract.rb, line 61 def to_s str = "Found too many files for pattern `#{pattern}` from context path #{context_path}" str += ", file groups #{groups.map(&:inspect)}" if !groups.nil? && !groups.empty? str + ", founded files #{files_paths}" end