class IRC < TCPSocket
  def cmd str
    send "#{str}\r\n", 0
...

Ruby Calling methods from elsewhere

by moshee, August 03, 2011 07:26, 5 refactorings, tagged with noob, classes

Is there any way to call cm...

D41d8cd98f00b204e9800998ecf8427e Talk
feed = RssParser.run("http://ws.audioscrobbler.com/1.0/user/me/recenttracks.rss")
  song1 = feed[:items][0][:title]
...

Ruby Think this needs a loop

by juo100@gmail.com, September 06, 2008 19:54, 3 refactorings, tagged with ruby, loop, noob

Im new to Ruby, I think it ...

B543a43dc8cb0aae562278484db60d25 Talk
def ask_words 
	array = []
	puts 'Enter words, blank row quits.'
...

Ruby Method for sorting

by onwinning.blogspot.com, August 19, 2008 17:14, 5 refactorings, tagged with sort, sorting, noob

This is exercise from Chris...

55502f40dc8b7c769880b10874abc9d0 Talk
def caesar(text,shift)
count = 0
...

Ruby Caesar Cipher

by Loki, August 09, 2008 05:26, 5 refactorings, tagged with ruby, caesar cipher, noob

A Caesar Cipher, or Caesar ...

55502f40dc8b7c769880b10874abc9d0 Talk