Sha256: 2fa7349ed7d2ffc058b1712c4023461f56e80139a5edebe47a6a098f3ef97637

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

module Hanami
  module Views
    # Null Object pattern for views
    #
    # @since 0.1.0
    # @api private
    class NullView
      def initialize(body)
        @body = body
      end

      def render(context)
        @body
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanami-0.7.0 lib/hanami/views/null_view.rb