Sha256: 32d4365bfd83a8a072b0b633e5e539d4a4ee5931f92bfbcd802853e4407c63b3

Contents?: true

Size: 295 Bytes

Versions: 28

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true
module Reek
  module AST
    module SexpExtensions
      # Utility methods for :sym nodes.
      module SymNode
        def name
          children.first
        end

        def full_name(outer)
          "#{outer}##{name}"
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
reek-4.6.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.6.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.6 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.5 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.4 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.3 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.5.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.4.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.4.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.4.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.3.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.2.5 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.2.4 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.2.3 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.2.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.2.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.2.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-4.1.1 lib/reek/ast/sexp_extensions/symbols.rb