Class: Casing::Pascal
- Inherits:
-
Object
- Object
- Casing::Pascal
- 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
5 6 7 |
# File 'lib/casing/pascal.rb', line 5 def self.match?(val) !!((val =~ /^[A-Z]/) && (val =~ /[a-z]/)) end |