Sha256: d55c5d26ed5f8323fe877086b7934334f2d16d8ec35f67c716278ac46fc81a82
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module Hanami module View module Rendering # Rendering options # # @since 1.1.1 # @api private class Options # @since 1.1.1 # @api private def self.build(options, locals, format) options.dup.tap do |opts| opts[:format] = format opts[:locals] = locals opts[:locals].merge!(options.fetch(:locals) { ::Hash.new }).merge!(format: format) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanami-view-1.2.0 | lib/hanami/view/rendering/options.rb |
hanami-view-1.1.2 | lib/hanami/view/rendering/options.rb |