Module: Remove_special_character

Defined in:
lib/remove_special_character.rb

Instance Method Summary collapse

Instance Method Details

#processObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/remove_special_character.rb', line 5

def process
  list_item = super
  elements = []
  list_item.each do |item|
    temp_value = item.gsub(/[^0-9A-Za-z]/, '')
    elements.push(temp_value)
  end

  return elements

end