Server IP : 66.29.132.122 / Your IP : 18.220.125.100 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/highline-2.1.0/examples/ |
Upload File : |
#!/usr/bin/env ruby -w # encoding: utf-8 # limit.rb # # Created by James Edward Gray II on 2008-11-12. # Copyright 2008 Gray Productions. All rights reserved. require "rubygems" require "highline/import" puts "Using: #{HighLine.default_instance.terminal.class}" puts text = ask("Enter text (max 10 chars): ") { |q| q.limit = 10 } puts "You entered: #{text}!"