Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
右耳有只蝉
@xeruzo
Member
NO. 34843 / 2018-04-14

广州
4 Topics / 64 Replies
2 Followers
1 Following
45 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 是否可改造成递归方法 at February 21, 2019

    感谢你的回复!你的方法我调整了下部分就可以啦~ 不用递归更好了,分分钟容易挂

    def get_all_subs
      ids = [self.id]
      ids.each do |id|
        id.to_employee.all_sub_ids.each{|e_id| ids.push(e_id) unless ids.include?(e_id)}
      end
      return ids
    end
    
  • [广州] RCC 招聘 - 高级 Ruby 开发工程师 (15-23K)-3-5 年 工作经验 at April 25, 2018

    在这么高的地方能看到日落日出真棒~ 环境不错噢~😀

  • Prev
  • 1
  • 2
  • 3
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English