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.66.0 lib/fastlane/core_ext/string.rb
fastlane-1.65.0 lib/fastlane/core_ext/string.rb
fastlane-1.64.0 lib/fastlane/core_ext/string.rb
fastlane-1.63.1 lib/fastlane/core_ext/string.rb
fastlane-1.63.0 lib/fastlane/core_ext/string.rb
fastlane-1.62.0 lib/fastlane/core_ext/string.rb
fastlane-1.61.0 lib/fastlane/core_ext/string.rb
fastlane-1.60.0 lib/fastlane/core_ext/string.rb
fastlane-1.59.0 lib/fastlane/core_ext/string.rb
fastlane-1.58.0 lib/fastlane/core_ext/string.rb
fastlane-1.57.0 lib/fastlane/core_ext/string.rb
fastlane-1.56.0 lib/fastlane/core_ext/string.rb
fastlane-1.55.0 lib/fastlane/core_ext/string.rb
fastlane-1.54.0 lib/fastlane/core_ext/string.rb
fastlane-1.53.0 lib/fastlane/core_ext/string.rb
fastlane-1.52.0 lib/fastlane/core_ext/string.rb
fastlane-1.51.0 lib/fastlane/core_ext/string.rb
fastlane-1.50.0 lib/fastlane/core_ext/string.rb
fastlane-1.49.0 lib/fastlane/core_ext/string.rb
fastlane-1.48.0 lib/fastlane/core_ext/string.rb