A quick Ruby Tutorial, Part 3
A quick Ruby Tutorial, Part 3. COMP313 Source: Programming Ruby, The Pragmatic Programmers’ Guide by Dave Thomas, Chad Fowler, and Andy Hunt. Index by each word. class WordIndex def initialize @index = {} end def add_to_index(obj, *phrases) phrases.each do |phrase|
439 views • 30 slides