Method: ERBLint::Linters::Helpers::RubocopHelpers#erb_ast

Defined in:
lib/primer/view_components/linters/helpers/rubocop_helpers.rb

#erb_ast(code) ⇒ Object

[View source]

8
9
10
# File 'lib/primer/view_components/linters/helpers/rubocop_helpers.rb', line 8

def erb_ast(code)
  RuboCop::AST::ProcessedSource.new(code, RUBY_VERSION.to_f).ast
end