Notes posted by wezm
RSS feed
0 thanks
Includes the dot
Returns the extension including the ‘.’.
E.g.
Pathname("/path/to/file.rb").extname #=> ".rb"
Returns the extension including the ‘.’.
E.g.
Pathname("/path/to/file.rb").extname #=> ".rb"