Module: Rails::ActionMethods

Defined in:
lib/rails/generators/rails/app/app_generator.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject (private)



25
26
27
# File 'lib/rails/generators/rails/app/app_generator.rb', line 25

def method_missing(...)
  @generator.send(...)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/rails/generators/rails/app/app_generator.rb', line 8

def options
  @options
end

Instance Method Details

#initialize(generator) ⇒ Object



10
11
12
13
# File 'lib/rails/generators/rails/app/app_generator.rb', line 10

def initialize(generator)
  @generator = generator
  @options   = generator.options
end