Method: ActiveSupport::CodeGenerator#initialize
- Defined in:
- activesupport/lib/active_support/code_generator.rb
#initialize(owner, path, line) ⇒ CodeGenerator
Returns a new instance of CodeGenerator.
53 54 55 56 57 58 59 |
# File 'activesupport/lib/active_support/code_generator.rb', line 53 def initialize(owner, path, line) @owner = owner @path = path @line = line @namespaces = Hash.new { |h, k| h[k] = MethodSet.new(k) } @sources = [] end |