Class: Holistic::Ruby::Parser::ProgramVisitor

Inherits:
SyntaxTree::Visitor
  • Object
show all
Defined in:
lib/holistic/ruby/parser/program_visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application:, constant_resolution:, file:) ⇒ ProgramVisitor

Returns a new instance of ProgramVisitor.



7
8
9
10
11
12
13
# File 'lib/holistic/ruby/parser/program_visitor.rb', line 7

def initialize(application:, constant_resolution:, file:)
  @application = application
  @constant_resolution = constant_resolution
  @file = file

  super()
end

Instance Attribute Details

#applicationObject (readonly)

Returns the value of attribute application.



5
6
7
# File 'lib/holistic/ruby/parser/program_visitor.rb', line 5

def application
  @application
end

#fileObject (readonly)

Returns the value of attribute file.



5
6
7
# File 'lib/holistic/ruby/parser/program_visitor.rb', line 5

def file
  @file
end