Sha256: 8b5e3f14719a9c9660eff0842f021a29c9043ae25b063fa8dc10e96a0168c2a0
Contents?: true
Size: 912 Bytes
Versions: 4
Compression:
Stored size: 912 Bytes
Contents
# frozen_string_literal: true module Hanami module CLI module Generators module App # @since 2.2.0 # @api private class Repo # @since 2.2.0 # @api private def initialize(fs:, inflector:, out: $stdout) @fs = fs @inflector = inflector @out = out end # @since 2.2.0 # @api private def call(key:, namespace:, base_path:) RubyFileWriter.new( fs: fs, inflector: inflector, ).call( key: key, namespace: namespace, base_path: base_path, extra_namespace: "Repos", relative_parent_class: "DB::Repo", body: [], ) end private attr_reader :fs, :inflector, :out end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems