class RBT::ParseConfigureHelp
Constants
- BE_VERBOSE
#¶ ↑
BE_VERBOSE
¶ ↑#¶ ↑
- CONFIGURE_STRING
#¶ ↑
CONFIGURE_STRING
¶ ↑#¶ ↑
- CYAN
- DEFAULT_COLOUR
- GREEN
- RED
#¶ ↑
Some hardcoded-colour definitions.
#¶ ↑
Public Class Methods
Public Instance Methods
cyan()
click to toggle source
include?(substring, be_verbose = @be_verbose)
click to toggle source
#¶ ↑
include?¶ ↑
Will return true if our flag could be found.
#¶ ↑
# File lib/rbt/utility_scripts/parse_configure_help.rb, line 91 def include?(substring, be_verbose = @be_verbose) substring = substring.dup if substring.frozen? substring.strip! # sanitize our input string substring.prepend '--' unless substring.start_with? '-' return false if @string.empty? # can never be true if @string is empty if @string.include? substring if be_verbose e '%-5s' % red+' YES, the configure option `'+substring+'` is included.'+revert end return true else if be_verbose e '%-5s' % cyan+' No, the configure option `'+substring+'` is not included.'+revert end return false end end
red()
click to toggle source
reset()
click to toggle source
return_terse_version()
click to toggle source
revert()
click to toggle source
run()
click to toggle source
sanitize_string( this_string = CONFIGURE_STRING )
click to toggle source
string?()
click to toggle source
#¶ ↑
string?¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/parse_configure_help.rb, line 59 def string? @string end
Also aliased as: string