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.

2 comments

Comments 1 - 2 of 2 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

3 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'
  8. desc 'Apply a patch directly from Pastie' task 'pastie:patch' do

+ errerr, 2 years ago

custom

3192 views, 3 favs, 0 embeds more stats

My Goruco 2008 presentation on Parse Tree and frien more

More Info

© All Rights Reserved

Go to text version
  • Total Views 3192
    • 3192 on SlideShare
    • 0 from embeds
  • Comments 2
  • Favorites 3
  • Downloads 29
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as innappropriate

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

Cancel

Categories