Sha256: a82e99040f8f76b275ece8d03425187bc7883dd5bea28a076a87832d927a007e

Contents?: true

Size: 491 Bytes

Versions: 37

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module ActionView # :nodoc:
  # = Action View Text Template
  class Template # :nodoc:
    class Text # :nodoc:
      attr_accessor :type

      def initialize(string)
        @string = string.to_s
      end

      def identifier
        "text template"
      end

      alias_method :inspect, :identifier

      def to_str
        @string
      end

      def render(*args)
        to_str
      end

      def format
        :text
      end
    end
  end
end

Version data entries

37 entries across 35 versions & 4 rubygems

Version Path
actionview-7.0.8.6 lib/action_view/template/text.rb
actionview-7.0.8.5 lib/action_view/template/text.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionview-7.0.8.4/lib/action_view/template/text.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionview-7.0.5.1/lib/action_view/template/text.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionview-7.0.5.1/lib/action_view/template/text.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionview-7.0.5.1/lib/action_view/template/text.rb
actionview-7.0.8.4 lib/action_view/template/text.rb
actionview-7.0.8.1 lib/action_view/template/text.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionview-7.0.3.1/lib/action_view/template/text.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionview-7.0.2.3/lib/action_view/template/text.rb
actionview-7.0.8 lib/action_view/template/text.rb
actionview-7.0.7.2 lib/action_view/template/text.rb
actionview-7.0.7.1 lib/action_view/template/text.rb
actionview-7.0.7 lib/action_view/template/text.rb
actionview-7.0.6 lib/action_view/template/text.rb
actionview-7.0.5.1 lib/action_view/template/text.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionview-7.0.2.3/lib/action_view/template/text.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionview-7.0.3.1/lib/action_view/template/text.rb
actionview-7.0.5 lib/action_view/template/text.rb
actionview-7.0.4.3 lib/action_view/template/text.rb