Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/helper.rb

Overview

Mixin helper to parse the accpetable strings

Instance Method Summary collapse

Instance Method Details

#parse_event_typesObject



5
6
7
# File 'lib/helper.rb', line 5

def parse_event_types
  self.split(",").map {|str| "#{str.strip.capitalize}Event"}
end