Sha256: a9605695389603fd7f1972059c0e827a3c167c06a2c82252c44c5be3a9756c84
Contents?: true
Size: 533 Bytes
Versions: 43
Compression:
Stored size: 533 Bytes
Contents
# frozen_string_literal: true module ActionView # :nodoc: class Template # :nodoc: # = Action View HTML Template class HTML # :nodoc: attr_reader :type def initialize(string, type) @string = string.to_s @type = type end def identifier "html template" end alias_method :inspect, :identifier def to_str ERB::Util.h(@string) end def render(*args) to_str end def format @type end end end end
Version data entries
43 entries across 43 versions & 6 rubygems