Class: RuboCop::AST::NodePattern::Compiler::Debug::Colorizer Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Inherits: | Object |
Defined in: | lib/rubocop/ast/node_pattern/compiler/debug.rb |
Constant Summary
-
COLOR_SCHEME =
# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 39{ not_visitable: :lightseagreen, nil => :yellow, false => :red, true => :green }.freeze
-
Compiler =
# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 94Debug
Class Method Summary
- .new(pattern, compiler: self.class::Compiler.new) ⇒ Colorizer constructor Internal use only
Instance Attribute Summary
- #compiler readonly Internal use only
- #node_pattern readonly Internal use only
- #pattern readonly Internal use only
Instance Method Summary
- #test(ruby, trace: self.class::Compiler::Trace.new) ⇒ Node Internal use only
- #ruby_ast(ruby) private Internal use only
Instance Attribute Details
#compiler (readonly)
[ GitHub ]# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 96
attr_reader :pattern, :compiler, :node_pattern
#node_pattern (readonly)
[ GitHub ]#pattern (readonly)
[ GitHub ]# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 96
attr_reader :pattern, :compiler, :node_pattern
Instance Method Details
#ruby_ast(ruby) (private)
[ GitHub ]# File 'lib/rubocop/ast/node_pattern/compiler/debug.rb', line 113
def ruby_ast(ruby) ProcessedSource.new(ruby, RUBY_VERSION.to_f, '(ruby)').ast end