Sha256: 8d000058fd41b21e81f4b3eb4d678a4f750251bdb791406ecaa00335f68ab45b

Contents?: true

Size: 247 Bytes

Versions: 42

Compression:

Stored size: 247 Bytes

Contents

win = RubyText.window(10, 60, r: 3, c: 14, fg: Blue, bg: Black)

win.output do
  puts "The #print and #p methods also act as you expect."

  print "This will all "
  print "go on a single "
  puts "line."

  puts
  array = [1, 2, 3]
  p array
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
rubytext-0.1.29 examples/puts_print.rb
rubytext-0.1.28 examples/puts_print.rb
rubytext-0.1.26 examples/puts_print.rb
rubytext-0.1.25 examples/puts_print.rb
rubytext-0.1.23 examples/puts_print.rb
rubytext-0.1.22 examples/puts_print.rb
rubytext-0.1.21 examples/puts_print.rb
rubytext-0.1.20 examples/puts_print.rb
rubytext-0.1.19 examples/puts_print.rb
rubytext-0.1.18 examples/puts_print.rb
rubytext-0.1.17 examples/puts_print.rb
rubytext-0.1.16 examples/puts_print.rb
rubytext-0.1.15 examples/puts_print.rb
rubytext-0.1.14 examples/puts_print.rb
rubytext-0.1.13 examples/puts_print.rb
rubytext-0.1.12 examples/puts_print.rb
rubytext-0.1.11 examples/puts_print.rb
rubytext-0.1.10 examples/puts_print.rb
rubytext-0.1.8 examples/puts_print.rb
rubytext-0.1.7 examples/puts_print.rb