Sha256: 560e678ed8bf0d96d24f546e7e131bc79d7368fb57d02187ba1b5319ffc7d733
Contents?: true
Size: 701 Bytes
Versions: 28
Compression:
Stored size: 701 Bytes
Contents
using System; using Generators.Input; using Generators.Output; using Humanizer; namespace Generators.Exercises { public class Yacht : GeneratorExercise { protected override void UpdateCanonicalData(CanonicalData canonicalData) { canonicalData.Exercise = "yacht-game"; foreach (var canonicalDataCase in canonicalData.Cases) { var category = canonicalDataCase.Input["category"].ToString(); var formattedCategory = StringDehumanizeExtensions.Dehumanize(category); canonicalDataCase.Input["category"] = new UnescapedValue($"YachtCategory.{formattedCategory}"); } } } }
Version data entries
28 entries across 28 versions & 1 rubygems