Module: Casing::Controls::Array

Defined in:
lib/casing/controls/array.rb

Class Method Summary collapse

Class Method Details

.exampleObject



4
5
6
7
8
9
10
11
12
# File 'lib/casing/controls/array.rb', line 4

def self.example
  [
    'underscore_value',
    'PascalValue',
    'camelValue',
    'Separate words',
    'some words'
  ]
end

.not_camel_caseObject



14
15
16
# File 'lib/casing/controls/array.rb', line 14

def self.not_camel_case
  example.delete_if { |e| Casing::Camel.match?(e) }
end

.not_underscore_caseObject



18
19
20
# File 'lib/casing/controls/array.rb', line 18

def self.not_underscore_case
  example.delete_if { |e| Casing::Underscore.match?(e) }
end