NetworkedBlogs.com (beta) is an extension of the Facebook app NetworkedBlogs.

TINIXTECH’S WEBLOG

You're new here, aren't you?

Click Connect with Facebook to join NetworkedBlogs. NetworkedBlogs is a community of bloggers and blog lovers. Join the fun, add your blog, and connect with others who read and write about subjects you like.
 

Information

Blog Name: TINIXTECH’S WEBLOG
Url: http://weblog.tinixtech.com.ar
Language: English
Topics: Ruby, Rails, Programming..
Description: …Watching the World, programming notes and other things…
Popularity: 5 Followers

Blog Feed

Extract each word found in a block of code
This opportunity was trying to write a regular expression and we’ve probably write a better … what this function is to process a string that is word for word count every word in a block… #!/usr/bin/ruby #Extract each word found in a block of code class String def word_count frecuencies = Hash.new(0) downcase.scan(/\w+/) { |word| frecuencies[word] += 1 } return frecuencies end end Then you can loading under console prompt and testing funtion >> load 'word_count.rb' => tru

Followers

This blog has 5 followers. Visit the blog page on Facebook to see who's following this blog.
Follow

Popular in:

Not enough data.
Calculated for blogs with 20+ followers.

Related Blogs

This site uses BitPixels previews
Questions? contact: networkedblogs@ninua.com
Copyright (C) 2008, Ninua, Inc.