key_value(key, value)
protected
Returns Ruby 1.9 style key-value pair
if current code is running on Ruby
1.9.x. Returns the old-style (with hash rocket) otherwise.
# File railties/lib/rails/generators/app_base.rb, line 272
def key_value(key, value)
if options[:old_style_hash] || RUBY_VERSION < '1.9'
":#{key} => #{value}"
else
"#{key}: #{value}"
end
end