diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-13 10:57:20 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-10-13 10:57:20 -0400 |
commit | 5956609f70c72a26f64f9b8ec8b3d6d780ba5c2d (patch) | |
tree | 8330c36cd5a02f022720577922148f9698685923 /app/models | |
parent | cb6eebdf05c95f15ad6ce8968838772a2b915755 (diff) | |
download | pokeviewer-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.rb | 11 |
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 |