Sha256: 45ad88c287b98e1537d1249cf764a35a38373271f79e6b28ff79889ca34b6b07
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
module ActionView #:nodoc: class Template class Text < String #:nodoc: HTML = Mime[:html] def initialize(string, content_type = HTML) super(string.to_s) @content_type = Mime[content_type] || content_type end def details {:formats => [@content_type.to_sym]} end def identifier 'text template' end def inspect 'text template' end def render(*args) to_s end def mime_type @content_type end def formats [mime_type] end def partial? false end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionpack-3.0.0.beta | lib/action_view/template/text.rb |