Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/inat-channel/data_types.rb

Instance Method Summary collapse

Instance Method Details

#to_tagsObject



50
51
52
53
54
55
56
57
58
# File 'lib/inat-channel/data_types.rb', line 50

def to_tags
  self.map do |item| 
    if item.respond_to?(:to_tag)
      item.to_tag 
    else
      item&.to_s.to_tag
    end
  end.compact
end