module Casing::Controls::Array

Public Class Methods

example() click to toggle source
# File lib/casing/controls/array.rb, line 4
def self.example
  [
    'underscore_value',
    'PascalValue',
    'camelValue',
    'Separate words',
    'some words'
  ]
end
not_camel_case() click to toggle source
# File lib/casing/controls/array.rb, line 14
def self.not_camel_case
  example.delete_if { |e| Casing::Camel.match?(e) }
end
not_underscore_case() click to toggle source
# File lib/casing/controls/array.rb, line 18
def self.not_underscore_case
  example.delete_if { |e| Casing::Underscore.match?(e) }
end