Class: Hanami::CLIBulma::Generators::App::View Private

Inherits:
Hanami::CLI::Generators::App::View
  • Object
show all
Defined in:
lib/hanami/cli_bulma/generators/app/view.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Since:

  • 0.0.1

Instance Method Summary collapse

Instance Method Details

#call(app, key, format, slice) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.0.1



12
13
14
15
16
17
18
19
20
# File 'lib/hanami/cli_bulma/generators/app/view.rb', line 12

def call(app, key, format, slice)
  context = ViewContext.new(inflector, app, slice, key)

  if slice
    generate_for_slice(context, format, slice)
  else
    generate_for_app(context, format)
  end
end