RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

  Today

Ruby hash initializing – why do you think you have a hash, but you have an array

We all use hashes and it seems, that there’s nothing special about them. They are as dictionaries in Python, or any other similar structures available for multiple different languages. And that’s more or less true. Although Ruby hashes are really special, because from time to time they really are… arrays. You can read more about that here.

Separating Abilities in CanCan

In this post Separating Abilities in CanCan, Jordan has a look at an example Ability file and enumerates some flaws in such a system. Following that he discusses a way to improve it by breaking the Ability file out into multiple Ability files.

Metaprogramming Dynamic Methods: Using Public_send

Metaprogramming is super cool, but it’s also super tough to learn when you’re first starting out. This blog post takes a look at metaprogramming through dynamic method calls, and explains and implements the public_send method in a real-life example of code abstraction.

time_boots.gem - simple time steps

I’ve recently published the gem for tasks like “round time to edge of day”, “advance time by 4 weeks”, “generate ‘each hour’ sequence” and so on. Small, no dependencies, no monkey-patching.

Mutant and CI

Mutation testing is another form of checking the test coverage. As such it makes sense to put it as part of our Continuous Delivery process. In this blog post I’ll show you how we started using mutant together with TravisCI in the RailsEventStore project.

Loading older posts