summaryrefslogtreecommitdiffstats
path: root/lib/band.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/band.rb')
-rw-r--r--lib/band.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/band.rb b/lib/band.rb
index 54775f4..a951059 100644
--- a/lib/band.rb
+++ b/lib/band.rb
@@ -50,4 +50,8 @@ class Band
def has_errors
errors.length > 0
end
+
+ def name_and_city
+ city.empty? ? name : name + " (" + city + ")"
+ end
end