This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- Platform inspectors | |
def jruby? ; RUBY_PLATFORM =~ /java/i end | |
def windows? ; RUBY_PLATFORM =~ /win(32|dows|ce)|djgpp|(ms|cyg|bcc)win|mingw32/i end | |
def unix? ; !jruby? && !windows? end | |
# --- Lé code | |
def ask_for_password_on_unix(prompt = "Enter password: ") |