method
key_value
v3.2.13 -
Show latest stable
- Class:
Rails::Generators::NamedBase
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.