Class: Webhookdb::Service::Types::CommaSepArray

Inherits:
Object
  • Object
show all
Defined in:
lib/webhookdb/service/types.rb

Class Method Summary collapse

Class Method Details

.parse(value) ⇒ Object



25
26
27
28
# File 'lib/webhookdb/service/types.rb', line 25

def self.parse(value)
  return value if value.respond_to?(:to_ary)
  return value.split(",").map(&:strip)
end