Sha256: 6ab2da5b53f0735715a23a4e729d0e75d51d4610374495e1605903f311a29017

Contents?: true

Size: 195 Bytes

Versions: 6

Compression:

Stored size: 195 Bytes

Contents

module Hanami
  module Views
    # Null Object pattern for views
    #
    # @since 0.1.0
    # @api private
    class NullView
      def render(_context)
        nil
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hanami-1.0.0.beta2 lib/hanami/views/null_view.rb
hanami-1.0.0.beta1 lib/hanami/views/null_view.rb
hanami-0.9.2 lib/hanami/views/null_view.rb
hanami-0.9.1 lib/hanami/views/null_view.rb
hanami-0.9.0 lib/hanami/views/null_view.rb
hanami-0.8.0 lib/hanami/views/null_view.rb