lib/imgurr/command.rb
# Public: Validate id (major)
#
# Returns true if valid id
Validate id (major)
Returns true if valid id
Validate id ( major ) Returns true if valid id
def valid_id(major)
        unless major =~ /^[a-zA-Z0-9]*$/
          puts "#{major} is not a valid imgur ID or URL"
          return false
        end
        return true
      end
def valid_id ( major ) unless major =~ / ^[a-zA-Z0-9]*$ / puts "#{major} is not a valid imgur ID or URL" return false end return true end
Public: Validate id (major)
Returns true if valid id
Public : Validate id ( major ) Returns true if valid id
major
<not_specific>