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.

The Builder Pattern (video)

The Builder pattern allows you to hide the configuration of complex objects in a separate class. It makes sense to use it when you feel like the creation of an object has become too complex, and you’re repeating the process in a few different places. Or, when you need to create an object with different possible configuration options. [more inside]

Strategic 1.2.0 (DefaultStrategy)

Strategic 1.2.0 (Painless Strategy Pattern in Ruby and Rails) shipped with a minor new feature: having a default strategy on Strategic classes of ‘default’, which is activated if a ModelNamespace::DefaultStrategy class is present… [more inside]

Perfect Shape - Pure Ruby Geometric Algrithms

Perfect Shape 1.0.0 was released today, providing the Ruby community with an open-source library of Pure Ruby Geometric Algorithms. The reason behind creating this library was that before, there were no comprehensive geometric algorithm libraries in Ruby that covered all the geometric shapes like rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves. Most of them either lacked support for certain shapes like arc or lacked algorithms for checking point containment in every shape, including Cubic Bezier Curves. Thankfully, Perfect Shape addresses that issue completely for the Ruby community. [more inside]

Loading older posts