Sha256: fdf07a52fa0db0123fd6e4a708b88566ee0d811053d9a65744a711e236da9201

Contents?: true

Size: 296 Bytes

Versions: 39

Compression:

Stored size: 296 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

39 entries across 37 versions & 2 rubygems

Version Path
reek-6.4.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.3.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.2.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.1.4 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.1.3 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.1.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.1.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.1.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.6 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.5 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.4 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.3 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-6.0.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-5.6.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-5.5.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-5.4.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-5.4.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-5.3.2 lib/reek/ast/sexp_extensions/symbols.rb