• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Forbidden Fruit: A Taste of Ruby's ParseTree
 

Forbidden Fruit: A Taste of Ruby's ParseTree

on

  • 10,855 views

My Goruco 2008 presentation on Parse Tree and friends.

My Goruco 2008 presentation on Parse Tree and friends.

Statistics

Views

Total Views
10,855
Views on SlideShare
10,836
Embed Views
19

Actions

Likes
9
Downloads
60
Comments
1

1 Embed 19

http://www.slideshare.net 19

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • PDF too: http://errtheblog.com/static/pdfs/goruco2008.pdf
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

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

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