2007
06.25

flexibility

mmmm…. parser….

def foo( a = ( def foo; puts "BAR"; end; method(:foo) ) )
  puts "FOO"
  a.call
end

can’t say it’s all that safe for “production use” though.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • HackerNews
  • LinkedIn
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter

No Comment.

Add Your Comment