Sha256: f43bbe2409a80fa9d052d1cbefeed1596aa7fae6e0bc87294757c5371769369c
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
#!/usr/local/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 & 2 rubygems
Version | Path |
---|---|
wishdev-rio-0.4.3.1 | ex/prompt.rb |
rio-0.3.9 | ex/prompt.rb |
rio-0.4.1 | ex/prompt.rb |
rio-0.4.2 | ex/prompt.rb |
rio-0.4.0 | ex/prompt.rb |