lib/convenient_service/examples/rails/gemfile.rb in convenient_service-0.1.0 vs lib/convenient_service/examples/rails/gemfile.rb in convenient_service-0.2.0

- old
+ new

@@ -2,20 +2,21 @@ require_relative "gemfile/rails_service" require_relative "gemfile/services" ## -# Usage example: +# @internal +# Usage example: # -# result = ConvenientService::Examples::Rails::Gemfile.format(path: "Gemfile") -# result = ConvenientService::Examples::Rails::Gemfile.format(path: "spec/cli/gemfile/format/fixtures/Gemfile") +# result = ConvenientService::Examples::Rails::Gemfile.format("Gemfile") +# result = ConvenientService::Examples::Rails::Gemfile.format("spec/cli/gemfile/format/fixtures/Gemfile") # module ConvenientService module Examples module Rails module Gemfile class << self - def format + def format(path) Services::Format[path: path] end end end end