Sha256: 88f1be51dec0755d7f87e12eb45243b03f8b114429445f2bd5598bdf2aa11668
Contents?: true
Size: 342 Bytes
Versions: 14
Compression:
Stored size: 342 Bytes
Contents
module Reek module AST module SexpExtensions # Utility methods for :if nodes. module IfNode def condition children.first end def body_nodes(type, ignoring = []) children[1..-1].compact.flat_map { |child| child.find_nodes(type, ignoring) } end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems