addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [ruby-99] Check out this Ruby Code! (http://www.on-site.com/software)

From: user 1.
Sent on: Friday, September 25, 2009 4:42 PM
Dear Friends,
 
Please follow me on twitter http://twitter.com/rorguru   I will also follow all of you.
 
Regards
 
Amit 
----- Original Message -----
Sent: Friday, September 25,[masked]:54 PM
Subject: Re: [ruby-99] Check out this Ruby Code! (http://www.on-site.com/software)


Just to complete this irreverent summary of ruby, we could add this towards the end (new lines are in red) just to throw in the mysterious "class << ..":

class << you
  def join_us?
    puts "perhaps come to work with us!"
  end
end

def how
 puts "We are looking for a passionate programmer."
 yield
 print "on-site.com, and if we like it... "
end

# and call it from 'main', ie:

self.class.send(:define_method, :main) {
 how do you.like? :ruby, :rails, :java, :javascript, :web_development
   if @a.lot
     please.send(:us) { your_resume }.now
   end
 end

 you.join_us?
}

Raul


On Fri, Sep 25, 2009 at 2:33 PM, Joe Dean <[address removed]> wrote:
#!/usr/bin/env ruby
you, please = 42

self.class.send(:define_method, :main) {
 how do you.like? :ruby, :rails, :java, :javascript, :web_development
   if @a.lot
     please.send(:us) { your_resume }.now
   end
 end
}

you = "If you think you have what it takes,"
please = "programming@"
@a = "please send us your"

def you.like?(*args)
 puts self
end

def @a.lot
 print self
 true
end

def please.us
 print " resume to "
 yield
 print self
 Time
end

def your_resume
 print "love"
end

def how
 puts "We are looking for a passionate programmer."
 yield
 puts "on-site.com"
end

main




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://www.meetup.com/silicon-valley-ruby/
This message was sent by Joe Dean ([address removed]) from Silicon Valley Ruby Meetup.
To learn more about Joe Dean, visit his/her member profile: http://www.meetup.com/silicon-valley-ruby/members/6665837/
To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/account/comm/
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Raul Parolari ([address removed]) from Silicon Valley Ruby Meetup.
To learn more about Raul Parolari, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy