Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/thetvdb_api/utility/array.rb
Class Method Summary collapse
Class Method Details
.coerce(value) ⇒ Object
2 3 4 |
# File 'lib/thetvdb_api/utility/array.rb', line 2 def self.coerce(value) value.to_s.split('|').reject { |element| element.empty? } end |