Sha256: 97599e13bc0a3269a3e6f01847dee458327f7c368e9a00a1837c04afb69f609d

Contents?: true

Size: 257 Bytes

Versions: 47

Compression:

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

47 entries across 47 versions & 1 rubygems

Version Path
fastlane-1.20.0 lib/fastlane/core_ext/string.rb
fastlane-1.19.0 lib/fastlane/core_ext/string.rb
fastlane-1.18.0 lib/fastlane/core_ext/string.rb
fastlane-1.17.1 lib/fastlane/core_ext/string.rb
fastlane-1.17.0 lib/fastlane/core_ext/string.rb
fastlane-1.16.0 lib/fastlane/core_ext/string.rb
fastlane-1.15.0 lib/fastlane/core_ext/string.rb
fastlane-1.14.1 lib/fastlane/core_ext/string.rb
fastlane-1.14.0 lib/fastlane/core_ext/string.rb
fastlane-1.13.1 lib/fastlane/core_ext/string.rb
fastlane-1.13.0 lib/fastlane/core_ext/string.rb
fastlane-1.12.0 lib/fastlane/core_ext/string.rb
fastlane-1.11.0 lib/fastlane/core_ext/string.rb
fastlane-1.10.0 lib/fastlane/core_ext/string.rb
fastlane-1.9.0 lib/fastlane/core_ext/string.rb
fastlane-1.8.0 lib/fastlane/core_ext/string.rb
fastlane-1.7.3 lib/fastlane/core_ext/string.rb
fastlane-1.7.2 lib/fastlane/core_ext/string.rb
fastlane-1.7.1 lib/fastlane/core_ext/string.rb
fastlane-1.7.0 lib/fastlane/core_ext/string.rb