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 = .is_a?(Array) ? : .to_s.split(/\W+/) @tags.each &:downcase! @tags.uniq! end |