lib/vidibus/fileinfo.rb
# Returns the format of a given file path.
# If no format can be detected, a NoFormatError will be raised.
Returns the format of a given file path.
If no format can be detected, a NoFormatError will be raised.
Returns the format of a given file path . If no format can be detected a NoFormatError will be raised .
def format(path)
        if path =~ /(?:\.)([a-z0-9]+)$/i
          $1.downcase
        else
          raise NoFormatError
        end
      end
def format ( path ) if path =~ / (?: \. )([a-z0-9]+)$ /i $1 . downcase else raise NoFormatError end end
Returns the format of a given file path.
Returns the format of a given file path .
path
<not_specific>