lib/convenient_service/examples/dry/gemfile.rb in convenient_service-0.1.0 vs lib/convenient_service/examples/dry/gemfile.rb in convenient_service-0.2.0
- old
+ new
@@ -2,20 +2,21 @@
require_relative "gemfile/dry_service"
require_relative "gemfile/services"
##
-# Usage example:
+# @internal
+# Usage example:
#
-# result = ConvenientService::Examples::Dry::Gemfile.format(path: "Gemfile")
-# result = ConvenientService::Examples::Dry::Gemfile.format(path: "spec/cli/gemfile/format/fixtures/Gemfile")
+# result = ConvenientService::Examples::Dry::Gemfile.format("Gemfile")
+# result = ConvenientService::Examples::Dry::Gemfile.format("spec/cli/gemfile/format/fixtures/Gemfile")
#
module ConvenientService
module Examples
module Dry
module Gemfile
class << self
- def format
+ def format(path)
Services::Format[path: path]
end
end
end
end