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

Calls superclass method
# 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

Public Instance Methods

to_s() click to toggle 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