method
comment_if
v8.1.1 -
Show latest stable
- Class:
Rails::Generators::AppBase
comment_if(value)private
No documentation available.
# File railties/lib/rails/generators/app_base.rb, line 341
def comment_if(value) # :doc:
question = "#{value}?"
comment =
if respond_to?(question, true)
send(question)
else
options[value]
end
comment ? "# " : ""
end