Module: RIO::Ext::Output

Defined in:
lib/rio/ext.rb

Class Method Summary collapse

Class Method Details

.add_extensions(obj) ⇒ Object



128
129
130
131
132
133
# File 'lib/rio/ext.rb', line 128

def add_extensions(obj)
  obj.extend(CSV::Output) if obj.csv?
  obj.extend(SplitLines::Output) if obj.splitlines?
  obj.extend(YAML::Output) if obj.yaml?
  obj
end