Sha256: 4dcc264edc0bcaa5b22e4a961247d92b6f5f6c734bee4bc1ecbac458bfba928b
Contents?: true
Size: 558 Bytes
Versions: 14
Compression:
Stored size: 558 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.to_sym] end end end end
Version data entries
14 entries across 14 versions & 3 rubygems