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)


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

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.


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

def options
  @options
end

Instance Method Details

#initialize(generator) ⇒ Object


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

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