Sha256: ba8bcaabd6d4f9331252db9af2f3309751a2067b2e4163f570bce42a0343ecff

Contents?: true

Size: 259 Bytes

Versions: 69

Compression:

Stored size: 259 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

69 entries across 69 versions & 1 rubygems

Version Path
fastlane-1.34.0 lib/fastlane/core_ext/string.rb
fastlane-1.33.6 lib/fastlane/core_ext/string.rb
fastlane-1.33.5 lib/fastlane/core_ext/string.rb
fastlane-1.33.4 lib/fastlane/core_ext/string.rb
fastlane-1.33.3 lib/fastlane/core_ext/string.rb
fastlane-1.33.2 lib/fastlane/core_ext/string.rb
fastlane-1.33.1 lib/fastlane/core_ext/string.rb
fastlane-1.33.0 lib/fastlane/core_ext/string.rb
fastlane-1.32.4 lib/fastlane/core_ext/string.rb
fastlane-1.32.3 lib/fastlane/core_ext/string.rb
fastlane-1.32.2 lib/fastlane/core_ext/string.rb
fastlane-1.32.1 lib/fastlane/core_ext/string.rb
fastlane-1.32.0 lib/fastlane/core_ext/string.rb
fastlane-1.31.0 lib/fastlane/core_ext/string.rb
fastlane-1.30.2 lib/fastlane/core_ext/string.rb
fastlane-1.30.1 lib/fastlane/core_ext/string.rb
fastlane-1.30.0 lib/fastlane/core_ext/string.rb
fastlane-1.29.2 lib/fastlane/core_ext/string.rb
fastlane-1.29.1 lib/fastlane/core_ext/string.rb
fastlane-1.29.0 lib/fastlane/core_ext/string.rb