Method: Joint::IO#initialize

Defined in:
lib/joint/io.rb

#initialize(attrs = {}) ⇒ IO

Returns a new instance of IO.



7
8
9
10
# File 'lib/joint/io.rb', line 7

def initialize(attrs={})
  attrs.each { |key, value| send("#{key}=", value) }
  @type ||= 'plain/text'
end