Sha256: d4e0afc30d8133f30358277e2f6761676cee8ca97751260d4e65f7b21323cffe

Contents?: true

Size: 469 Bytes

Versions: 76

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module ActionView
  # = Action View Renderable Template for objects that respond to #render_in
  class Template
    class Renderable # :nodoc:
      def initialize(renderable)
        @renderable = renderable
      end

      def identifier
        @renderable.class.name
      end

      def render(context, *args)
        @renderable.render_in(context)
      end

      def format
        @renderable.format
      end
    end
  end
end

Version data entries

76 entries across 72 versions & 7 rubygems

Version Path
actionview-7.0.7.1 lib/action_view/template/renderable.rb
actionview-6.1.7.5 lib/action_view/template/renderable.rb
actionview-7.0.7 lib/action_view/template/renderable.rb
actionview-7.0.6 lib/action_view/template/renderable.rb
actionview-7.0.5.1 lib/action_view/template/renderable.rb
actionview-6.1.7.4 lib/action_view/template/renderable.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionview-7.0.2.3/lib/action_view/template/renderable.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionview-7.0.3.1/lib/action_view/template/renderable.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionview-6.1.6.1/lib/action_view/template/renderable.rb
actionview-7.0.5 lib/action_view/template/renderable.rb
actionview-7.0.4.3 lib/action_view/template/renderable.rb
actionview-6.1.7.3 lib/action_view/template/renderable.rb
actionview-6.1.7.2 lib/action_view/template/renderable.rb
actionview-7.0.4.2 lib/action_view/template/renderable.rb
actionview-7.0.4.1 lib/action_view/template/renderable.rb
actionview-6.1.7.1 lib/action_view/template/renderable.rb
actionview-7.0.4 lib/action_view/template/renderable.rb
actionview-6.1.7 lib/action_view/template/renderable.rb
actionview-7.0.3.1 lib/action_view/template/renderable.rb
actionview-6.1.6.1 lib/action_view/template/renderable.rb