Method: Rails::Generators::Testing::Behavior#generator

Defined in:
railties/lib/rails/generators/testing/behavior.rb

#generator(args = default_arguments, options = {}, config = {}) ⇒ Object

Instantiate the generator.



77
78
79
# File 'railties/lib/rails/generators/testing/behavior.rb', line 77

def generator(args = default_arguments, options = {}, config = {})
  @generator ||= generator_class.new(args, options, config.reverse_merge(destination_root: destination_root))
end