Sha256: 5699e08215595d826be940c0c759dda214a96cda87f957d25836b3b1f94a8da3
Contents?: true
Size: 373 Bytes
Versions: 5
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems