Project

Jam_Func

0.0
No commit activity in last 3 years
No release in over 3 years
Run a group of functions with flow control.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Jam_Func

Not ready.

Use It (when it's ready)

  gem install "Jam_Func"
  require "Jam_Func"

  j = Jam_Func.new

  j.on "create User", lambda { |o|
    User.create o[:name], o[:fav_book]
  }

  j.on "before create User", lambda { |o, last, jam|
    if name_is_taken o[:name]
      jam.error("name taken", o[:name])
    end
  }

  j.run('create User')

Alternatives

Lots. But, I could not find some this simple and down to the point. Let me know in the issues if you find something better than this.

   Better == Just_As_Simple_But_Better_Maintained