lib/hanami/cli/generators/app/struct.rb in hanami-cli-2.2.0.beta1 vs lib/hanami/cli/generators/app/struct.rb in hanami-cli-2.2.0.beta2
- old
+ new
@@ -15,19 +15,20 @@
@out = out
end
# @since 2.2.0
# @api private
- def call(app_namespace, key, slice)
+ def call(key:, namespace:, base_path:)
RubyFileWriter.new(
fs: fs,
inflector: inflector,
- app_namespace: app_namespace,
+ ).call(
key: key,
- slice: slice,
+ namespace: namespace,
+ base_path: base_path,
extra_namespace: "Structs",
relative_parent_class: "DB::Struct",
- ).call
+ )
end
private
attr_reader :fs, :inflector, :out