Sha256: 6f6db3089bc7d766ecefc217513fd0801ff837ad01c94bab88fbbb237eb19152

Contents?: true

Size: 493 Bytes

Versions: 9

Compression:

Stored size: 493 Bytes

Contents

class StaticMatic::AmbiguousTemplateError < StandardError
  attr_reader :template_name
  
  def initialize(template_name, ambiguous_templates)
    @template_name = template_name
    @ambiguous_templates = ambiguous_templates
  end
  
  def message
<<-MESSAGE
Ambiguous request when searching for a template for filename `#{@template_name}`:
There is more than one type of template available for rendering.

Templates causing the ambiguity:
#{@ambiguous_templates.join "\n"}
MESSAGE
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
staticmatic2-2.1.8 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.7 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.6 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.5 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.4 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.3 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.2 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.1 lib/staticmatic/ambiguous_template_error.rb
staticmatic2-2.1.0 lib/staticmatic/ambiguous_template_error.rb