0.01
No commit activity in last 3 years
No release in over 3 years
Provides a series of s-expression transformations useful for automatic refactoring or morphing of Ruby/Rails/Sinatra code.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.0

Runtime

~> 0.6.0
~> 2.3.1
~> 0.1.4
~> 0.13
 Project Readme

<img src=“https://secure.travis-ci.org/rubiety/ruby_transform.png?branch=master” alt=“Build Status” />

Ruby Transform¶ ↑

Introduction¶ ↑

Provides a series of s-expression transformations useful for automatic refactoring or morphing of Ruby/Rails/Sinatra code.

Example¶ ↑

This is just one of many examples:

Block Method To Proc Transform¶ ↑

Looks for cases where we’re calling a single method on a single-parameter block argument. These instances can use the Ruby 1.9 and ActiveSupport “Symbol#to_proc” trick.

Example:

collection.map {|d| d.name }

Transforms To:

collect.map(&:name)