Sha256: 28aaa2e8548b6f86fbfd966a122091aa699d6c5f0006bb3800c1095609cb232b

Contents?: true

Size: 438 Bytes

Versions: 12

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Presenter
    # @api private
    module Renderable
      extend Support::Extension

      prepend_methods do
        def initialize(*args)
          @rendered = false
          super
        end
      end

      def rendered
        @rendered = true
        halt
      end

      def rendered?
        @rendered == true
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pakyow-presenter-1.0.6 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.5 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.4 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.3 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.2 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.1 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.0 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.0.rc5 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.0.rc4 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.0.rc3 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.0.rc2 lib/pakyow/presenter/renderable.rb
pakyow-presenter-1.0.0.rc1 lib/pakyow/presenter/renderable.rb