Project

eyeballer

0.0
No commit activity in last 3 years
No release in over 3 years
A simple observer library
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.9.12
 Project Readme

Eyeballer

A simple observer written in Ruby.

Observe:

class Foo

  def save
    "Saved!"
  end

  def whatever
    "Whatever ..."
  end

end

class MyObserver
  include Eyeballer

  observe :foo, :save => [:do_something, :do_something_else]
  observe :foo, :whatever => :do_something_else

  def do_something
    "Do something!"
  end

  def do_something_else
  "Do something else!"
  end

end