Sha256: ae3437ee6aa18c705c33adbc94d4335baa02da0554889b22c8d5d7c65368108b
Contents?: true
Size: 410 Bytes
Versions: 6
Compression:
Stored size: 410 Bytes
Contents
module Reek module AST module SexpExtensions # Utility methods for :const nodes. module ConstNode def name namespace = children.first if namespace "#{namespace.format_to_ruby}::#{simple_name}" else simple_name.to_s end end def simple_name children.last end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems