This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# IO.each_line (from ruby core) --- each_line(*args) --- Executes the block for every line in *ios*, where lines are separated by *sep*. *ios* must be opened for reading or an IOError will be raised. If no block is given, an enumerator is returned instead. f = File.new("testfile") f.each {|line| puts "#{f.lineno}: #{line}" } *produces:* 1: This is line one 2: This is line two 3: This is line three 4: And so on... See IO.readlines for details about getline_args. (This method is an alias for IO#each.) Executes the block for every line in *ios*, where lines are separated by *sep*. *ios* must be opened for reading or an IOError will be raised. If no block is given, an enumerator is returned instead. f = File.new("testfile") f.each {|line| puts "#{f.lineno}: #{line}" } *produces:* 1: This is line one 2: This is line two 3: This is line three 4: And so on... See IO.readlines for details about getline_args.
This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.