Class: Holistic::Ruby::Parser::ProgramVisitor
- Inherits:
-
SyntaxTree::Visitor
- Object
- SyntaxTree::Visitor
- Holistic::Ruby::Parser::ProgramVisitor
- Defined in:
- lib/holistic/ruby/parser/program_visitor.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
Returns the value of attribute application.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(application:, constant_resolution:, file:) ⇒ ProgramVisitor
constructor
A new instance of ProgramVisitor.
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
#application ⇒ Object (readonly)
Returns the value of attribute application.
5 6 7 |
# File 'lib/holistic/ruby/parser/program_visitor.rb', line 5 def application @application end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
5 6 7 |
# File 'lib/holistic/ruby/parser/program_visitor.rb', line 5 def file @file end |