Module: RuboCop::AST::ParserSource::LazyConstants Private
| Relationships & Source Files | |
| Defined in: | lib/rubocop/ast/parser_source.rb |
Overview
Loads the rest of parser when something refers to a constant that
is not part of the files above, like Parser::Base or
Parser::Builders::Default.
Instance Method Summary
- #const_missing(name) Internal use only
Instance Method Details
#const_missing(name)
[ GitHub ]# File 'lib/rubocop/ast/parser_source.rb', line 65
def const_missing(name) return super unless require('parser') && const_defined?(name, false) const_get(name, false) end