Sha256: 86370b11c81d2e5a0d43e81de142a7c7b1fbb05f3199ac5391a6392633c0fc61
Contents?: true
Size: 550 Bytes
Versions: 11
Compression:
Stored size: 550 Bytes
Contents
module CustomizableBootstrap module Generators module Utils def output(output, color = :green) say(" - #{output}", color) end def ask_for(wording, default_value = nil, override_if_present_value = nil) override_if_present_value.present? ? display("Using [#{override_if_present_value}] for question '#{wording}'") && override_if_present_value : ask(" ? #{wording} Press <enter> for [#{default_value}] >", :yellow).presence || default_value end end end end
Version data entries
11 entries across 11 versions & 1 rubygems