Sha256: 4d62f1de34c9f865943f694c4cca4104b27c0f0447f9379f5e20640dcfd1e071

Contents?: true

Size: 1.04 KB

Versions: 7

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

require "dry/inflector"
require_relative "errors"

module Hanami
  class View
    # @api private
    # @since 2.1.0
    class RenderingMissing
      # @api private
      # @since 2.1.0
      def format
        raise RenderingMissingError
      end

      # @api private
      # @since 2.1.0
      def context
        raise RenderingMissingError
      end

      # @api private
      # @since 2.1.0
      def part(_name, _value, **_options)
        raise RenderingMissingError
      end

      # @api private
      # @since 2.1.0
      def scope(_name = nil, _locals) # rubocop:disable Style/OptionalArguments
        raise RenderingMissingError
      end

      # @api private
      # @since 2.1.0
      def template(_name, _scope)
        raise RenderingMissingError
      end

      # @api private
      # @since 2.1.0
      def partial(_name, _scope)
        raise RenderingMissingError
      end

      # @api private
      # @since 2.1.0
      def inflector
        @inflector ||= Dry::Inflector.new
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hanami-view-2.2.0 lib/hanami/view/rendering_missing.rb
hanami-view-2.2.0.rc1 lib/hanami/view/rendering_missing.rb
hanami-view-2.2.0.beta2 lib/hanami/view/rendering_missing.rb
hanami-view-2.2.0.beta1 lib/hanami/view/rendering_missing.rb
hanami-view-2.1.0 lib/hanami/view/rendering_missing.rb
hanami-view-2.1.0.rc3 lib/hanami/view/rendering_missing.rb
hanami-view-2.1.0.rc2 lib/hanami/view/rendering_missing.rb