Sha256: 7334fc7d93132eedab28511bfc572f9959a1731248c22e9a1d34a42c5658961f
Contents?: true
Size: 440 Bytes
Versions: 5
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true module Reek module AST module SexpExtensions # Utility methods for :case nodes. module CaseNode def condition children.first end def body_nodes(type, ignoring = []) children[1..-1].compact.flat_map { |child| child.each_node(type, ignoring).to_a } end def else_body children.last end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems