V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
rebeccaMyKid
V2EX  ›  问与答

问一下各位哥哥, Ruby 里的 bundler 怎么用呀?

  •  
  •   rebeccaMyKid · Jun 11, 2016 · 1381 views
    This topic created in 3608 days ago, the information mentioned may be changed or developed.

    比如一个项目,首先我在 command line -> bundler indstall 了之后,在项目文件里面是不是只需要

    require 'bundler/setup'
    

    就行了啊? 还要每个 gem 都再分别 require 么? 谢谢啦♪(v^_^)v

    1 replies    2016-06-12 10:26:15 +08:00
    wdrsam
        1
    wdrsam  
       Jun 12, 2016   ❤️ 1
    不需要。

    bundle 后大部分都是直接就可以用,只有部分 gem 需要 require 后才能使用。
    具体的使用需要参考对应 gem 的文档。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3939 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 10:24 · PVG 18:24 · LAX 03:24 · JFK 06:24
    ♥ Do have faith in what you're doing.