Sha256: 73f209662d77d7a8cddf6cb37e08f19d81eb7b43a6fb61190f8b9276c4ad868e

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

##
# User input library
module UserInput
  # Hash of validation strategies
  VALIDATIONS = {
    Proc => :call,
    Regexp => :match,
    Enumerable => :include?
  }.freeze

  class << self
    ##
    # Insert a helper .new() method for creating a new Prompt object

    def new(*args, &block)
      self::Prompt.new(*args, &block)
    end
  end
end

require 'userinput/prompt'
require 'userinput/boolean'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
userinput-1.0.2 lib/userinput.rb