Sha256: 5d749a22ab1d3019dd0ade4cacf71ebf2c3d1e91a9faabe00395a1a6d337a8b1

Contents?: true

Size: 265 Bytes

Versions: 14

Compression:

Stored size: 265 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
reek-3.11 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.10.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.10.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.10.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.9.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.9.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.8.3 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.8.2 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.8.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.8.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.7.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.7.0 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.6.1 lib/reek/ast/sexp_extensions/symbols.rb
reek-3.6.0 lib/reek/ast/sexp_extensions/symbols.rb