Module: Uberinstaller::Utils

Defined in:
lib/uberinstaller/utils.rb

Class Method Summary collapse

Class Method Details

.letter?(lookAhead) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/uberinstaller/utils.rb', line 5

def self.letter?(lookAhead)
  lookAhead =~ /[[:alpha:]]/
end

.numeric?(lookAhead) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/uberinstaller/utils.rb', line 9

def self.numeric?(lookAhead)
  lookAhead =~ /[[:digit:]]/
end