instance method yaml_key_value

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5 Private — implementation detail, not part of the public API

Signature

yaml_key_value(key, value)

No documentation comment.

Parameters

key req
value req
Source
# File railties/lib/rails/generators/test_unit/model/model_generator.rb, line 27
        def yaml_key_value(key, value)
          if RESERVED_YAML_KEYWORDS.include?(key.downcase)
            "'#{key}': #{value}"
          else
            "#{key}: #{value}"
          end
        end

Defined in railties/lib/rails/generators/test_unit/model/model_generator.rb line 27 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TestUnit::Generators::ModelGenerator

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close