Sha256: 8a24cafdab8045053311ae857be691fac601e2b6364121ba9aa6e6a16906200e
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
# frozen_string_literal: true require "dry/inflector" module Dry class View # @api private class RenderEnvironmentMissing class MissingEnvironmentError < StandardError def message "a +render_env+ must be provided" end end def format raise MissingEnvironmentError end def context raise MissingEnvironmentError end def part(name, value, **options) raise MissingEnvironmentError end def scope(name = nil, locals) raise MissingEnvironmentError end def template(name, scope, &block) raise MissingEnvironmentError end def partial(name, scope, &block) raise MissingEnvironmentError end def inflector @inflector ||= Dry::Inflector.new end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-view-0.7.0 | lib/dry/view/render_environment_missing.rb |
dry-view-0.6.0 | lib/dry/view/render_environment_missing.rb |