Sha256: 0b12ab6fef11a759d5dc93162f302fcba7e8d8849e11440637474046e8baf045

Contents?: true

Size: 361 Bytes

Versions: 3

Compression:

Stored size: 361 Bytes

Contents

class String
  def fastlane_class
    split('_').collect!(&:capitalize).join
  end

  def fastlane_module
    self == "pem" ? 'PEM' : self.fastlane_class
  end

  def fastlane_underscore
    self.gsub(/::/, '/').
      gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2').
      gsub(/([a-z\d])([A-Z])/, '\1_\2').
      tr("-", "_").
      downcase
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 fastlane_core/lib/fastlane_core/core_ext/string.rb
fastlane_hotfix-2.165.0 fastlane_core/lib/fastlane_core/core_ext/string.rb
fastlane_hotfix-2.187.0 fastlane_core/lib/fastlane_core/core_ext/string.rb