by noob | 07/01/17 | 2 Answers | Tags : Ruby , include , extend Views : 168
what is difference between include and extend in Ruby?

Read more

by noob | 07/01/17 | 1 Answers | Tags : Ruby , include , require Views : 188
what is difference between include and require in Ruby? include seems to include file and require seems to only if file is required. so am guessing good ? include vs require in Ruby , need to know pros and cons of include and require in Ruby .

Read more

by noob | 06/01/17 | 1 Answers | Tags : Ruby , Spaceship-Operator Views : 161
how Spaceship Operator ( <=>) work ? what it means when we say x<=>y and how it interact with array what this give us result ? optional info i need is , all other language like PHP , Python , have Spaceship Operator ?

Read more

by QuickIos | 17/09/16 | 2 Answers | Tags : Ruby , Mac , OS X Views : 270
some reason brew update don't work i tried first its give me same mess /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- mach (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/Library/Homebrew/extend/pathname.rb:2:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/Library/Homebrew/global.rb:3:in `<top (required)>' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/Library/brew.rb:15:in `<main>' i don't what is issue with brew . its file permission issue or other don't know ?

Read more