Sha256: 58b9d17c705be8ceb70847f2a2f75e5940b8bf7c314ac0fbab22551fa37ebc29
Contents?: true
Size: 594 Bytes
Versions: 147
Compression:
Stored size: 594 Bytes
Contents
module ActionView #:nodoc: # = Action View Text Template class Template class Text #:nodoc: attr_accessor :type def initialize(string, type = nil) @string = string.to_s @type = Types[type] || type if type @type ||= Types[:text] end def identifier 'text template' end def inspect 'text template' end def to_str @string end def render(*args) to_str end def formats [@type.respond_to?(:ref) ? @type.ref : @type.to_s] end end end end
Version data entries
147 entries across 142 versions & 12 rubygems