class ChupaText::TextData
Public Class Methods
Source
# File lib/chupa-text/text-data.rb, line 19 def initialize(text, options={}) super(options) self.uri = Pathname(path.to_s.gsub(/\.[a-z\d]+\z/i, ".txt")) self.mime_type = "text/plain" self.body = text self.size = text.bytesize end
Calls superclass method
ChupaText::Data::new