13 Oct '15, 12am

Ruby's ARGF

Many Unix utilities accept input both in the form of filenames passed as command-line arguments and as data sent to the program’s standard input stream. If filenames are passed, the corresponding files will be read in sequence. If not, the standard input stream will be read instead. This behavior makes utilities like cat , grep , and sed versatile and easy to use. In Ruby, a subset of cat ’s features can be re-implemented with the following code: # cat.rb if ARGV.length > 0 ARGV.each do |filename| puts File.read(filename) end else puts STDIN.read end The implementation inspects the length of the ARGV array, containing all command line arguments passed to the program. If any arguments are passed, they are interpreted as filenames, read and output. If no arguments are passed, the standard input stream is instead read and output. The cat clone can then be used like this: $ ru...

Full article: https://robots.thoughtbot.com/rubys-argf

Tweets

[Developers.IO] [Ruby on Rails]AdminLTEのログインテンプレートを使用してみる

[Developers.IO] [Ruby on Rails]AdminLTEのログインテンプ...

dev.classmethod.jp 14 Oct '15, 11pm

<!DOCTYPE html> <html> (中略) <body class="hold-transition login-page"> <div class="login-box"> <div class="login-logo"> <a ...

Using Ruby for Mobile App Testing

Using Ruby for Mobile App Testing

testdroid.com 14 Oct '15, 10am

Appium Tip #5: Ready to Rumble with Ruby? By: Lasse Häll @Domestus111 12 Oct 2015 We’re back with a new blog in our 37 Thi...

Ruby 2.2.3 Enumerator Basics : Part 3 #ruby #ru...

rubyflow.com 12 Oct '15, 2am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Ruby/Rails - Bechmark your Methods

rubyflow.com 12 Oct '15, 6pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Where You Get Your Ruby News: The Top Five Thanks to everyone who contributed!

Where You Get Your Ruby News: The Top Five Than...

rubini.us 14 Oct '15, 4am

Where You Get Your Ruby News: The Top Five Brian Shirai Follow @brixen 12 October 2015 Recently, I was curious where peopl...

【Ruby on Railsの教材作りました】 釣りっぽいタイトルで申し訳ありません。 Rub...

slideshare.net 15 Oct '15, 5am

問: XMLとは何の事ですか?具体例交え。 29 答:タグを使ったデータの表現形式 <employees><employee> <firstName>John</firstName> <lastName>Doe</lastName> </emp...

New! San Francisco #AngularJS #Job Ruby on Rail...

angularjscenter.com 12 Oct '15, 1pm

Ruby on Rails developer Posted by Oct - 12 - 2015 0 Comment Angeloop Location : San Francisco CA US Bonus points if you kn...

Ruby on Rails Developer / Operations

denver.jobing.com 13 Oct '15, 1pm

Location: Broomfield, CO Date Posted: Monday, October 12, 2015 Experience: 6 years Job Type: Temp to Perm Reference #: 421...

Just wrote a new blog post: Inheritance in Ruby on Rails using Plain Ole' Ruby objects: @LaunchP…

Just wrote a new blog post: Inheritance in Ruby...

launchpadlab.com 16 Oct '15, 5pm

In my opinion, implementing inheritance in this situation is absolutely critical. What happens, for example, if the bedroo...

Loops in Ruby - all possible approaches #ruby #...

rubyflow.com 14 Oct '15, 1pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Ruby on Rails Developer Needed for an Urgent Pr...

freelancer.com 11 Oct '15, 4pm

Skills Required HTML PHP Ruby Ruby on Rails Website Design Project Budget $30 - $250 USD Total Bids 3 Project Description ...

dbf: DBF is a small fast Ruby library for readi...

rubydoc.info 11 Oct '15, 6am

dBase supports encoding non-english characters in different formats. Unfortunately, the format used is not always set, so ...

#onlinejob Ruby Tutorial ( urgent ) by revven01...

freelancer.com 09 Oct '15, 7am

I want an Expert to create Training Tutorials on Ruby The tutorials must be in text format and must pass copyscape. Screen...

Ruby Developer: For a global market leader in M...

careerlifter.nl 10 Oct '15, 2am

Bent u toe aan een uitdaging als Ruby developer , of zoekt u vacatures op het gebied van Ruby developer , dan bent u bij c...

Why is this ruby script printing this and not t...

stackoverflow.com 17 Oct '15, 9am

For fun i've been working on making a bank script. The current version is supposed to ask for an account and then put the ...