Sha256: 953f83b63dea741c9c966455bad5fca779e320a231f6c6e401947061b66267e8

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

class String
  def fastlane_class
    split('_').collect!(&:capitalize).join
  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

14 entries across 14 versions & 1 rubygems

Version Path
fastlane-1.87.1 lib/fastlane/core_ext/string.rb
fastlane-1.87.0 lib/fastlane/core_ext/string.rb
fastlane-1.86.1 lib/fastlane/core_ext/string.rb
fastlane-1.86.0 lib/fastlane/core_ext/string.rb
fastlane-1.85.0 lib/fastlane/core_ext/string.rb
fastlane-1.84.0 lib/fastlane/core_ext/string.rb
fastlane-1.83.0 lib/fastlane/core_ext/string.rb
fastlane-1.82.0 lib/fastlane/core_ext/string.rb
fastlane-1.81.0 lib/fastlane/core_ext/string.rb
fastlane-1.80.0 lib/fastlane/core_ext/string.rb
fastlane-1.70.0 lib/fastlane/core_ext/string.rb
fastlane-1.69.0 lib/fastlane/core_ext/string.rb
fastlane-1.68.0 lib/fastlane/core_ext/string.rb
fastlane-1.67.0 lib/fastlane/core_ext/string.rb