No commit activity in last 3 years
No release in over 3 years
Ruby doesn't like you arbitrarily deciding when to execute expressions. Take control with this gem. It's a simple way to mix in additional behavior into Proc that will allow you to make custom DSL's that will change how ruby deals with expressions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

MethodSource::Expressions

Small extension to method_source. It adds #expressions to the Proc class. This method returns a hash of expressions defined inside a given Proc/Lambda. Each expression object knows its range of line numbers, its source, and its source_location.

Installation

Add this line to your application's Gemfile:

gem 'method_source-expressions'

And then execute:

$ bundle

Or install it yourself as:

$ gem install method_source-expressions

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request