Class: ThetvdbMapper::Mapping::StringList

Inherits:
Object
  • Object
show all
Defined in:
lib/thetvdb_mapper/mapping/string_list.rb

Class Method Summary collapse

Class Method Details

.map(data) ⇒ Object



2
3
4
# File 'lib/thetvdb_mapper/mapping/string_list.rb', line 2

def self.map(data)
  data.to_s.split('|').reject{ |element| element.empty? }
end