instance method
extify
Ruby on Rails 7.0.10
Since v3.0.20 Last seen in v7.0.10 PrivateSignature
extify(name)
Add an extension to the given name based on the platform.
Parameters
-
namereq
Source
# File railties/lib/rails/generators/actions.rb, line 475
def extify(name) # :doc:
if Gem.win_platform?
"#{name}.bat"
else
name
end
end
Defined in railties/lib/rails/generators/actions.rb line 475
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions