lib/convenient_service/examples/standard/factorial.rb in convenient_service-0.15.0 vs lib/convenient_service/examples/standard/factorial.rb in convenient_service-0.16.0

- old
+ new

@@ -13,10 +13,12 @@ module Examples module Standard class Factorial include ConvenientService::Feature::Standard::Config - entry :calculate do |number| + entry :calculate + + def calculate(number) Services::Calculate[number: number] end end end end