vendor/jruby/1.9/gems/reek-1.6.5/lib/reek/smells/module_initialize.rb
def examine_context(module_ctx)
        module_ctx.local_nodes(:def) do |node| # FIXME: also search for :defs?
          if node.name.to_s == 'initialize'
            return [
              SmellWarning.new(self, context: module_ctx.full_name,
                                     lines:   [module_ctx.exp.line],
                                     message: 'has initialize method')
            ]
          end
        end
        []
      end
#
# Checks whether module has method 'initialize'.
#
# @return [Array<SmellWarning>]
#
Checks whether module has method 'initialize'.
Checks whether module has method ' initialize ' .
def examine_context(module_ctx)
        module_ctx.local_nodes(:def) do |node| 
          if node.name.to_s == 'initialize'
            return [
              SmellWarning.new(self, context: module_ctx.full_name,
                                     lines:   [module_ctx.exp.line],
                                     message: 'has initialize method')
            ]
          end
        end
        []
      end
def examine_context ( module_ctx ) module_ctx . local_nodes ( :def ) do | node | if node . name . to_s == 'initialize' return [ SmellWarning . new ( self , context : module_ctx . full_name , lines : [ module_ctx . exp . line ] , message : 'has initialize method' ) ] end end [ ] end
Checks whether module has method 'initialize'.
Checks whether module has method ' initialize ' .
# FIXME: also search for :defs?
None
Array<SmellWarning>
module_ctx