Sha256: 3fad3fc637ba513f392cac91fe361c55b51bb72caa338d4b4b132e129846d65d
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 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.2.0 | lib/motion_vj/helpers/input.rb |