Sha256: b1a7612c74ab8f673dff699bd0605c59a09bc6b738835a99dbf688e41da6e218
Contents?: true
Size: 470 Bytes
Versions: 13
Compression:
Stored size: 470 Bytes
Contents
module CLI module UI module Prompt # A class that handles the various options of an InteractivePrompt and their callbacks class OptionsHandler def initialize @options = {} end def options @options.keys end def option(option, &handler) @options[option] = handler end def call(option) @options[option].call(option) end end end end end
Version data entries
13 entries across 13 versions & 2 rubygems