Class: Webhookdb::Service::Types::TrimmedString

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

Class Method Summary collapse

Class Method Details

.map(arr) ⇒ Object



23
# File 'lib/webhookdb/service/types.rb', line 23

def self.map(arr) = arr.map { |a| self.new(a) }

.parse(value) ⇒ Object



22
# File 'lib/webhookdb/service/types.rb', line 22

def self.parse(value) = self.new(value.strip)