Module: Rails::ActionMethods

Defined in:
railties/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_missing(meth, *args, &block) ⇒ Object (private)

TODO: Remove once this is fully in place



23
24
25
# File 'railties/lib/rails/generators/rails/app/app_generator.rb', line 23

def method_missing(meth, *args, &block)
  @generator.send(meth, *args, &block)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options



5
6
7
# File 'railties/lib/rails/generators/rails/app/app_generator.rb', line 5

def options
  @options
end

Instance Method Details

#initialize(generator) ⇒ Object



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

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