Sha256: 8844c47b180258c9c7abaf9bfdd581846a884aa967acb5641e5b8276a8a9027f
Contents?: true
Size: 316 Bytes
Versions: 3
Compression:
Stored size: 316 Bytes
Contents
module Joint class IO attr_accessor :name, :content, :content_type, :size def initialize(attrs={}) attrs.each { |key, value| send("#{key}=", value) } @content_type ||= 'plain/text' @size ||= @content.size unless @content.nil? end alias path name alias read content end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
joint-0.5.4 | lib/joint/io.rb |
joint-0.5.3 | lib/joint/io.rb |
joint-0.5.2 | lib/joint/io.rb |