Method: Joint::IO#initialize
- Defined in:
- lib/joint/io.rb
#initialize(attrs = {}) ⇒ IO
Returns a new instance of IO.
5 6 7 8 9 |
# File 'lib/joint/io.rb', line 5 def initialize(attrs={}) attrs.each { |key, value| send("#{key}=", value) } @type ||= 'plain/text' @size ||= @content.size unless @content.nil? end |