Sha256: adc73ec195de7be3a4d538c407faeed545261d01a546905d3fdd6a81af82c563
Contents?: true
Size: 493 Bytes
Versions: 5
Compression:
Stored size: 493 Bytes
Contents
#!/usr/bin/ruby require 'rio' ans = rio(?-).chomp.print("Type Something: ").gets rio(?-).puts("You typed '#{ans}'") # Could also be written like this # #stdio = rio(?-).chomp #ans = stdio.print("Type Something: ").gets #stdio.puts("You typed '#{ans}'") # # Or even this # #stdio = rio(?-).chomp #stdio.puts("You typed '#{stdio.print("Type Something: ").gets}'") # # Or this # #rio(?-).puts("You typed '#{rio(?-).chomp.print("Type Something: ").gets}'") # __END__
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rio-0.3.2 | ex/prompt.rb |
rio-0.3.1 | ex/prompt.rb |
rio-0.3.4 | ex/prompt.rb |
rio-0.3.7 | ex/prompt.rb |
rio-0.3.3 | ex/prompt.rb |