Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
Androd rest client architecture
Next
Download to read offline and view in fullscreen.

Share

Forbidden Fruit: A Taste of Ruby's ParseTree

Download to read offline

My Goruco 2008 presentation on Parse Tree and friends.

Related Books

Free with a 30 day trial from Scribd

See all

Forbidden Fruit: A Taste of Ruby's ParseTree

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

    Sep. 1, 2015
  • numbchild

    May. 4, 2014
  • hebing_0625

    Feb. 21, 2013
  • cpjolicoeur

    Jan. 31, 2013
  • gursimransingh11

    Sep. 21, 2012
  • ccokme

    Feb. 18, 2011
  • hugobarauna

    Sep. 6, 2009
  • stonegao

    Jun. 19, 2009
  • fabiokung

    Feb. 10, 2009
  • davenolan

    Dec. 15, 2008

My Goruco 2008 presentation on Parse Tree and friends.

Views

Total views

9,003

On Slideshare

0

From embeds

0

Number of embeds

32

Actions

Downloads

64

Shares

0

Comments

0

Likes

10

×