Class: Casing::Camel

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

Defined Under Namespace

Modules: Array, Hash, String

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/camel.rb', line 5

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