Sha256: ee618931b774956283e42f8ec7becb6d60857e5e30408d006e7b53efec14dcb5
Contents?: true
Size: 873 Bytes
Versions: 3
Compression:
Stored size: 873 Bytes
Contents
# rubocop:disable Naming/UncommunicativeMethodParamName module NoServiceModule end module SpecService include Simple::Service # This is service1 # # Service 1 has a full description def service1(a, b, c = "speed-of-light", d:, e: 2.781); end # This is service2 (no full description) def service2 "service2 return" end def service3 nil end private def not_a_service; end end module InvokeTestService include Simple::Service def no_params "service2 return" end def positional_params(a, b, c = "speed-of-light", e = 2.781) [a, b, c, e] end def named_params(a:, b:, c: "speed-of-light", e: 2.781) [a, b, c, e] end def mixed_optional_params(a, b = "default-b", c = "speed-of-light", e: 2.781) [a, b, c, e] end def variadic_params(a, b = "queen bee", *args, e: 2.781) [a, b, args, e] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple-service-0.1.4 | spec/support/spec_services.rb |
simple-service-0.1.3 | spec/support/spec_services.rb |
simple-service-0.1.2 | spec/support/spec_services.rb |