lib/rack/amf/config.rb
# Add an extension to the filename provided if the file doesn't
# already have extension.
Add an extension to the filename provided if the file doesn't
already have extension.
Add an extension to the filename provided if the file doesn ' t already have extension .
def add_file_extension(file, extension='rb')
      if file =~ /\.\w+$/
        file
      else
        "#{file}.#{extension}"
      end
    end
def add_file_extension ( file , extension = 'rb' ) if file =~ / \. \w +$ / file else "#{file}.#{extension}" end end
Add an extension to the filename provided if the file doesn't
already have extension.
Add an extension to the filename provided if the file doesn ' t already have extension .
file
<not_specific>
extension
<not_specific>