lib/pelusa/lint/case_statements.rb in pelusa-0.2.3 vs lib/pelusa/lint/case_statements.rb in pelusa-0.2.4
- old
+ new
@@ -21,10 +21,10 @@
"Doesn't use case statements"
end
def iterate_lines!(klass)
ClassAnalyzer.walk(klass) do |node|
- if node.is_a?(Rubinius::AST::Case)
+ if node.is_a?(Rubinius::ToolSets::Runtime::ToolSet::AST::Case)
@violations << node.line
end
end
end
end