lib/code_web/code_parser.rb
# return nil if we haven't hit a class yet
return nil if we haven't hit a class yet
return nil if we haven ' t hit a class yet
def self_name
      node=@cur_method.select {|cm| cm[1] == true}.last
      node.first unless node.nil?
    end
def self_name node = @cur_method . select { | cm | cm [ 1 ] == true } . last node . first unless node . nil? end
return nil if we haven't hit a class yet
return nil if we haven ' t hit a class yet
#cm[1] == true for module/class definitions