21 Jul '14, 4pm

Ruby 2 Keyword Arguments

Ruby 2.0 introduced first-class support for keyword arguments: def foo(bar: 'default') puts bar end foo # => 'default' foo(bar: 'baz') # => 'baz' In Ruby 1.9, we could do something similar using a single Hash parameter: def foo(options = {}) bar = options.fetch(:bar, 'default') puts bar end foo # => 'default' foo(bar: 'baz') # => 'baz' Ruby 2.0 blocks can also be defined with keyword arguments: define_method(:foo) do |bar: 'default'| puts bar end foo # => 'default' foo(bar: 'baz') # => 'baz' Again, to achieve similar behavior in Ruby 1.9, the block would take an options hash, from which we would extract argument values. Required keyword arguments Unfortunately, Ruby 2.0 doesn’t have built-in support for required keyword arguments. Luckily, Ruby 2.1 introduced required keyword arguments, which are defined with a trailing colon: def foo(bar:) puts bar end foo # => ArgumentEr...

Full article: http://robots.thoughtbot.com/ruby-2-keyword-arguments

Tweets

Connascence and Ruby 2 Keyword Arguments

rubyflow.com 21 Jul '14, 11pm

Connascence and Ruby 2 Keyword Arguments Posted by croaky on July 22, 2014 — 0 comments When one Ruby method has to know t...

#RubyOnRails Ruby On Rails Developer for 2 page...

freelancer.com 23 Jul '14, 3pm

Project Description: I'm looking to have a 2 page site created for our product launch using this code: https://github.com/...

フロートの左右にある行の端がずれる Ruby on Railsのインストールと起動

フロートの左右にある行の端がずれる Ruby on Railsのインストールと起動

pentan.info 23 Jul '14, 6am

=> Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutd...

The History of Ruby

The History of Ruby

sitepoint.com 26 Jul '14, 5pm

The Ruby language is 21 years old. Its strong community and adoption by the open source community has kept this language s...

Мой друг @romansnitko проводит охуенный мастер-...

trueprogrammer.com 21 Jul '14, 3pm

2 месяца интенсивного и ежедневного обучения Ruby и затем Ruby On Rails 5 дней в неделю мы будем погружать вас в обучение ...

How And Why #Rolex Prices Have Increased Over Time

ablogtowatch.com 20 Jul '14, 11pm

Very interesting analysis in this first article, but I think we will be able to draw the conclusion after all is exposed t...

Ruby on Rails Developer * * Company: Cyber Code...

cybercoders.com 21 Jul '14, 9am

If you are a Ruby on Rails Developer with experience, please read on! Top Reasons to Work with Us 1. Interesting, innovati...

#SpeakerChat and are both free.

Thanks for using our free tool - you seem to have stumbled across something that's restricted in this version. You can upg...

Convert a website from PHP to Ruby on Rails by ...

freelancer.com 21 Jul '14, 1am

Project Description: I have a working PHP website but keeping future in mind, I want to convert it into a Ruby on Rails Si...

New Job Alert: Senior Ruby on Rails with Javasc...

simplyhired.com 21 Jul '14, 12am

Job Description The right candidate will have demonstrable experience of producing high quality code (Ruby on Rails, Javas...

Wow @dtinth's article on Ruby Weekly

Wow @dtinth's article on Ruby Weekly

rubyweekly.com 24 Jul '14, 4pm

Ruby.inspect: Koichi Sasada's Useful RedDotRuby Keynote RedDotRuby 2014 Last month at RedDotRuby 2014 in Singapore, Koichi...

Job Opening: Junior Ruby on Rails: Job Qualific...

sysgen.com.ph 19 Jul '14, 4pm

At least 2 years experience in web development using Ruby Strong skills on browser side programming that includes experien...

RubyMonk - Metaprogramming Ruby - Table of Cont...

rubymonk.com 25 Jul '14, 5am

Code that writes code. Add more powerful abstractions and reduce duplication through Ruby that writes Ruby!

RailsによるWebアプリケーション開発超入門講座 #zusaar

zusaar.com 22 Jul '14, 3pm

https://docs.google.com/file/d/0BxEpAdCr4SGVSmVSVXBTdkNLTms