about summary refs log tree commit diff stats
path: root/app/models
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-10-13 10:57:20 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-10-13 10:57:20 -0400
commit5956609f70c72a26f64f9b8ec8b3d6d780ba5c2d (patch)
tree8330c36cd5a02f022720577922148f9698685923 /app/models
parentcb6eebdf05c95f15ad6ce8968838772a2b915755 (diff)
downloadpokeviewer-5956609f70c72a26f64f9b8ec8b3d6d780ba5c2d.tar.gz
pokeviewer-5956609f70c72a26f64f9b8ec8b3d6d780ba5c2d.tar.bz2
pokeviewer-5956609f70c72a26f64f9b8ec8b3d6d780ba5c2d.zip
Added gender symbol to Pokémon display
Diffstat (limited to 'app/models')
-rw-r--r--app/models/pokeviewer/pokemon.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/models/pokeviewer/pokemon.rb b/app/models/pokeviewer/pokemon.rb index f65d68e..36ed8a8 100644 --- a/app/models/pokeviewer/pokemon.rb +++ b/app/models/pokeviewer/pokemon.rb
@@ -194,6 +194,17 @@ module Pokeviewer
194 end 194 end
195 end 195 end
196 196
197 def gender_symbol
198 case gender.intern
199 when :female
200 "♀"
201 when :male
202 "♂"
203 when :genderless
204 ""
205 end
206 end
207
197 private 208 private
198 209
199 def set_uuid 210 def set_uuid