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