Sha256: ec3b1299621f4d38e5f659dcb41dc0f1eecd422a84121b7e207146d055ec4f08
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
module MotionVj module Helpers module Input def self.gets_until_not_blank(input_name = :input) loop do value = $stdin.gets.to_s.strip if value.empty? print("Please provide a valid #{input_name}:") else return value end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion_vj-0.1.0 | lib/motion_vj/helpers/input.rb |