Sha256: b32718efa374b38f24171aa9c53d54b6c2bd28e00cc47feb7729e68976c67670

Contents?: true

Size: 358 Bytes

Versions: 24

Compression:

Stored size: 358 Bytes

Contents

require 'curly/error'

module Curly
  class PresenterNotFound < Error
    attr_reader :path

    def initialize(path)
      @path = path
    end

    def message
      "error compiling `#{path}`: could not find #{presenter_class_name}"
    end

    private

    def presenter_class_name
      Curly::Presenter.presenter_name_for_path(path)
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
curly-templates-3.4.0 lib/curly/presenter_not_found.rb
curly-templates-3.3.0 lib/curly/presenter_not_found.rb
curly-templates-3.2.0 lib/curly/presenter_not_found.rb
curly-templates-3.1.0 lib/curly/presenter_not_found.rb
curly-templates-3.0.0 lib/curly/presenter_not_found.rb
curly-templates-2.6.5 lib/curly/presenter_not_found.rb
curly-templates-2.6.4 lib/curly/presenter_not_found.rb
curly-templates-2.6.3 lib/curly/presenter_not_found.rb
curly-templates-2.6.2 lib/curly/presenter_not_found.rb
curly-templates-2.6.1 lib/curly/presenter_not_found.rb
curly-templates-2.6.0 lib/curly/presenter_not_found.rb
curly-templates-2.5.0 lib/curly/presenter_not_found.rb
curly-templates-2.4.1 lib/curly/presenter_not_found.rb
curly-templates-2.4.0 lib/curly/presenter_not_found.rb
curly-templates-2.3.2 lib/curly/presenter_not_found.rb
curly-templates-2.3.1 lib/curly/presenter_not_found.rb
curly-templates-2.3.0 lib/curly/presenter_not_found.rb
curly-templates-2.2.0 lib/curly/presenter_not_found.rb
curly-templates-2.1.1 lib/curly/presenter_not_found.rb
curly-templates-2.1.0 lib/curly/presenter_not_found.rb