lib/joint/io.rb in joint-0.5.4 vs lib/joint/io.rb in joint-0.5.5

- old
+ new

@@ -1,11 +1,11 @@ module Joint class IO - attr_accessor :name, :content, :content_type, :size + attr_accessor :name, :content, :type, :size def initialize(attrs={}) attrs.each { |key, value| send("#{key}=", value) } - @content_type ||= 'plain/text' + @type ||= 'plain/text' @size ||= @content.size unless @content.nil? end alias path name alias read content \ No newline at end of file