Sha256: ff8a5ac69d7ed31ae7ac4757f652f34238d70d2a7d4889086f644366bb938322
Contents?: true
Size: 894 Bytes
Versions: 4
Compression:
Stored size: 894 Bytes
Contents
# frozen_string_literal: true module Hanami module CLI module Generators module App # @since 2.2.0 # @api private class Struct # @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: "Structs", relative_parent_class: "DB::Struct", ) end private attr_reader :fs, :inflector, :out end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems