Sha256: 424024c7ea01aa8f8c19acce703234512707e959218ed9867eea29618498d05b
Contents?: true
Size: 601 Bytes
Versions: 23
Compression:
Stored size: 601 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 input = canonicalDataCase.Properties["input"] as System.Collections.Generic.Dictionary<string,object>; input["category"] = new UnescapedValue($"YachtCategory.{input["category"].ToString().Dehumanize()}"); } } } }
Version data entries
23 entries across 23 versions & 1 rubygems