Method: Tags#initialize

Defined in:
lib/tags.rb

#initialize(tags) ⇒ Tags

Returns a new instance of Tags.



9
10
11
12
13
# File 'lib/tags.rb', line 9

def initialize(tags)
  @tags = tags.is_a?(Array) ? tags : tags.to_s.split(/\W+/)
  @tags.each &:downcase!
  @tags.uniq!
end