Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/awspec/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#camelizeObject



4
5
6
# File 'lib/awspec/ext/string.rb', line 4

def camelize
  Dry::Inflector.new.camelize(self)
end

#demodulizeObject



16
17
18
# File 'lib/awspec/ext/string.rb', line 16

def demodulize
  Dry::Inflector.new.demodulize(self)
end

#pluralizeObject



8
9
10
# File 'lib/awspec/ext/string.rb', line 8

def pluralize
  Dry::Inflector.new.pluralize(self)
end

#underscoreObject



12
13
14
# File 'lib/awspec/ext/string.rb', line 12

def underscore
  Dry::Inflector.new.underscore(self)
end