lib/pelusa/lint/demeter_law.rb in pelusa-0.2.3 vs lib/pelusa/lint/demeter_law.rb in pelusa-0.2.4

- old
+ new

@@ -21,10 +21,10 @@ "Respects Demeter law" end def iterate_lines!(klass) ClassAnalyzer.walk(klass) do |node| - if node.is_a?(Rubinius::AST::Send) && node.receiver.is_a?(Rubinius::AST::Send) + if node.is_a?(Rubinius::ToolSets::Runtime::ToolSet::AST::Send) && node.receiver.is_a?(Rubinius::ToolSets::Runtime::ToolSet::AST::Send) @violations << node.line unless white_listed?(node.receiver.name) end end end