Colon in Ruby

in Slots

1) abc: it can’t exist independently 2) :xyz it is a symbol :xyz.class => Symbol3) abc::xyz it represents namespace Example code: module ABC class Xyz def initialize @size = 400
Continue Reading

替换homebrew默认源

in Ruby

12cd "$(brew --repo)"git remote set-url origin git://mirrors.ustc.edu.cn/brew.git 来源https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git $ gem sources –add https://gems.ruby-china.org/ –remove https://r
Continue Reading

更新上El Capitan之后使用ruby依赖的相关包出现问题,包括cocoapod,sass,compass等。输入命令后提示 command not found.找到原因是因为ruby的位置换了(这里不甚了解)。例如错误: ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/sass
Continue Reading

  • page 1 of 1

Consiiii

China


老板,我什么都能干


China