Guest User

Untitled

a guest
May 28th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. [/var/lib/gems/1.8/gems/twitter-0.3.7/lib/twitter]
  2. 11:20 [farzy:pts/2] pragmatic% irb
  3. >> $:.unshift "."
  4. => [".", "/usr/local/lib/site_ruby/1.8", "/usr/local/lib/site_ruby/1.8/i486-linux", "/usr/local/lib/site_ruby/1.8/i386-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/vendor_ruby/1.8", "/usr/lib/ruby/vendor_ruby/1.8/i486-linux", "/usr/lib/ruby/vendor_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i486-linux", "/usr/lib/ruby/1.8/i386-linux", "."]
  5. >> require 'easy_class_maker'
  6. => true
  7. >> class Glop
  8. >> include Twitter::EasyClassMaker
  9. >> attr_accessor :a, :b
  10. >> end
  11. => [:a, :b]
  12. >> Glop.new do |g|
  13. > g.a = 'foo'
  14. > g.b = 'bar'
  15. > end
Add Comment
Please, Sign In to add comment