Sha256: 361f098fe5aec46895dbde4f1cfcc063b8a2f7156a7df57343a7e9366e8003db

Contents?: true

Size: 297 Bytes

Versions: 13

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

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

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

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/ext/string.rb
awspec-1.30.0 lib/awspec/ext/string.rb
awspec-1.29.3 lib/awspec/ext/string.rb
awspec-1.29.2 lib/awspec/ext/string.rb
awspec-1.29.1 lib/awspec/ext/string.rb
awspec-1.29.0 lib/awspec/ext/string.rb
awspec-1.28.2 lib/awspec/ext/string.rb
awspec-1.28.1 lib/awspec/ext/string.rb
awspec-1.28.0 lib/awspec/ext/string.rb
awspec-1.27.1 lib/awspec/ext/string.rb
awspec-1.27.0 lib/awspec/ext/string.rb
awspec-1.26.0 lib/awspec/ext/string.rb
awspec-1.25.2 lib/awspec/ext/string.rb