lib/mayl/commands/get.rb in mayl-0.2.0 vs lib/mayl/commands/get.rb in mayl-0.2.1
- old
+ new
@@ -29,13 +29,14 @@
#
# Returns the key.
def execute
locales.each do |locale|
result = locale.get qualified_key
+ name = locale.to_s
if result.is_a? String
- print " #{locale.to_s}: #{result}\n"
+ print " #{name}: #{result}\n"
else
- print " #{locale.to_s}: (empty)\n"
+ print " #{name}: (empty)\n"
end
end
@key
end