Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ab7830d66c
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.599 kb
module ActionView #:nodoc:
# = Action View Text Template
class Template
class Text < String #:nodoc:
attr_accessor :mime_type
def initialize(string, mime_type = nil)
super(string.to_s)
@mime_type = Mime[mime_type] || mime_type if mime_type
@mime_type ||= Mime::TEXT
end
def identifier
'text template'
end
def inspect
'text template'
end
def render(*args)
to_s
end
def formats
[@mime_type.to_sym]
end
def partial?
false
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.