class Epuber::Compiler::FileFinders::MultipleFilesFoundError
Attributes
context_path[R]
@return [String]
files_paths[R]
@return [Array<String>]
groups[R]
@return [Array<Symbol>]
pattern[R]
@return [String]
Public Class Methods
new(pattern, groups, context_path, files_paths)
click to toggle source
@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
# File lib/epuber/compiler/file_finders/abstract.rb, line 50 def initialize(pattern, groups, context_path, files_paths) @pattern = pattern @groups = Array(groups) @context_path = context_path @files_paths = files_paths end
Public Instance Methods
to_s()
click to toggle source
# File lib/epuber/compiler/file_finders/abstract.rb, line 57 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