No commit activity in last 3 years
No release in over 3 years
A Simple Ruby DSL for Instance Tracking
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0
>= 0
>= 0
 Project Readme

InstanceTracker

A Simple Ruby DSL for Instance Tracking.

Installation

Add this line to your application's Gemfile:

gem 'instance_tracker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install instance_tracker

API Summary

Start by including InstanceTracker::Trackable within classes in which you want to track an instance variable; this provides the class a track class method which allows you to define which instance variable to track.

  class Foo
    include InstanceTracker::Trackable
    track :wrapper

    def initialize(wrapper)
      @wrapper = wrapper
    end
  end

You are now able to access the wrapper by simply calling trackable_instance from any instance of your class.

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

License

This project rocks and uses MIT-LICENSE.