Module Twitter::EasyClassMaker
In: lib/twitter/easy_class_maker.rb

Methods

included   new  

Classes and Modules

Module Twitter::EasyClassMaker::ClassMethods

Public Class methods

allows for any class that includes this to use a block to initialize variables instead of assigning each one seperately

Example:

instead of…

s = Status.new s.foo = ‘thing’ s.bar = ‘another thing‘

you can …

Status.new do |s|

  s.foo = 'thing'
  s.bar = 'another thing'

end

[Validate]