Class: Casing::Pascal

Inherits:
Object
  • Object
show all
Extended by:
Casing
Defined in:
lib/casing/pascal.rb,
lib/casing/pascal/hash.rb,
lib/casing/pascal/array.rb,
lib/casing/pascal/string.rb

Defined Under Namespace

Modules: String Classes: Array, Hash

Class Method Summary collapse

Methods included from Casing

!, call, case?, value_cased?

Class Method Details

.match?(val) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/casing/pascal.rb', line 5

def self.match?(val)
  !!((val =~ /^[A-Z]/) && (val =~ /[a-z]/))
end