Module: RIO::Ext::Input

Defined in:
lib/rio/ext.rb

Class Method Summary collapse

Class Method Details

.add_extensions(obj) ⇒ Object



109
110
111
112
113
114
# File 'lib/rio/ext.rb', line 109

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