Forbidden Fruit: A Taste of Ruby's ParseTree

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

3 comments

Comments 1 - 3 of 3 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

4 Favorites

Forbidden Fruit: A Taste of Ruby's ParseTree - Presentation Transcript

  1. Chris Wanstrath http://github.com/defunkt
  2. • define_method • Class.new • instance_eval • send
  3. class Person singleton = (class << self; self end) tons_of_class_methods.each do |name, body| singleton.send(:define_method, name, &body) end end
  4. class Class def singleton (class << self; self end) end def define_class_method(name, &body) singleton.send(:define_method, name, &body) end end
  5. class Person tons_of_class_methods.each do |name, body| define_class_method name, &body end end
  6. Ruby is powerful
  7. 'rake'.sub 'r', 's'

+ errerr, 2 years ago

custom

4186 views, 4 favs, 0 embeds more stats

My Goruco 2008 presentation on Parse Tree and frien more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 4186
    • 4186 on SlideShare
    • 0 from embeds
  • Comments 3
  • Favorites 4
  • Downloads 37
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories